/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 5 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 = 7422
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1359.7+4012_daily_bin188
RA = 209.928, Dec = 40.2153
tmin = 288057601, tmax = 288316801
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='95644', job_status='RUN', time_executed='2021-09-08 19:36:08.188708', time_epoch_executed='1631154968.19' WHERE source_name='4FGL J1359.7+4012' and cadence='daily' and bin_id='188'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/95644

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/95644/ft1_4FGL_J1359.7+4012_daily_bin188.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/95644/ft2_4FGL_J1359.7+4012_daily_bin188.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/95644/ft1_4FGL_J1359.7+4012_daily_bin188.fits outfile=/scratch/kocevski/95644/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin188.fits ra=209.928 dec=40.2153 rad=12.0 tmin=288057601.0 tmax=288316801.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.61
user 3.35
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/95644/ft1_filtered_4FGL_J1359.7+4012_daily_bin188.fits" evtable="EVENTS" scfile=/scratch/kocevski/95644/ft2_4FGL_J1359.7+4012_daily_bin188.fits sctable="SC_DATA" outfile=/scratch/kocevski/95644/ltcube_288057601_288316801_4FGL_J1359.7+4012_daily_bin188.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/95644/ft2_4FGL_J1359.7+4012_daily_bin188.fits
.....................!
real 11.68
user 11.31
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/95644/ft1_filtered_4FGL_J1359.7+4012_daily_bin188.fits evtable="EVENTS" scfile=/scratch/kocevski/95644/ft2_4FGL_J1359.7+4012_daily_bin188.fits sctable="SC_DATA" expcube=/scratch/kocevski/95644/ltcube_288057601_288316801_4FGL_J1359.7+4012_daily_bin188.fits outfile=/scratch/kocevski/95644/expmap_288057601_288316801_4FGL_J1359.7+4012_daily_bin188.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/95644/ltcube_288057601_288316801_4FGL_J1359.7+4012_daily_bin188.fits
.....................!
real 190.47
user 185.72
sys 4.43

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/95644/ft1_filtered_4FGL_J1359.7+4012_daily_bin188.fits scfile=/scratch/kocevski/95644/ft2_4FGL_J1359.7+4012_daily_bin188.fits outfile=/scratch/kocevski/95644/cmap_288057601_288316801_4FGL_J1359.7+4012_daily_bin188.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.52
user 0.39
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/95644/ft1_filtered_4FGL_J1359.7+4012_daily_bin188.fits scfile=/scratch/kocevski/95644/ft2_4FGL_J1359.7+4012_daily_bin188.fits outfile=/scratch/kocevski/95644/cmap_HighResolution_288057601_288316801_4FGL_J1359.7+4012_daily_bin188.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=209.928 yref=40.2153 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/95644/ft1_filtered_4FGL_J1359.7+4012_daily_bin188.fits evtable="EVENTS" scfile=/scratch/kocevski/95644/ft2_4FGL_J1359.7+4012_daily_bin188.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/95644/Model_4FGL_J1359.7+4012_daily_bin188.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/95644/ft1_filtered_4FGL_J1359.7+4012_daily_bin188.fits....................!
real 46.67
user 45.47
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.504       1.0000         .10000E-03   10000.    
     3 'norm      '    1.3179       1.0000         .10000E-03   10000.    
     4 'norm      '    20.359       1.0000         .10000E-03   10000.    
     5 'norm      '    11.935       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .46584E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.6191       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10594E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11536E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    23.631       1.0000         .10000E-03   10000.    
    11 'norm      '    4.4591       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .11100E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.5952       1.0000         .10000E-03   10000.    
    15 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    43.639       1.0000         .10000E-03   10000.    
    26 'norm      '    6.9715       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10226E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .72078       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.4741       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=   5760.832     FROM MIGRAD    STATUS=CONVERGED    884 CALLS     4409 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.485        .34521E-05** at limit **
   2  Prefactor     10.514        16.755        .93301E-06    .92210E-04
   3  norm          1.3179        3.5039        .83306E-06    .12358E-03
   4  norm          20.356        15.400       -.40980E-06   -.25890E-04
   5  norm          11.935        5.9504        .21662E-06    .12977E-03
   6  Prefactor     .49131E-02    2.6532       -.12542E-05    .67586E-03
   7  Prefactor     4.7403        16.854        .17455E-05    .15474E-03
   8  Prefactor     .10000E-03    31.198       -.27879E-05** at limit **
   9  Prefactor     .10000E-03    120.51       -.81213E-05** at limit **
  10  Prefactor     23.637        31.853       -.18923E-05    .13201E-04
  11  norm          4.4588        3.9604       -.71282E-07    .10414E-04
  12  Prefactor     .10000E-03    31.655       -.16050E-05** at limit **
  13  norm          .10000E-03    .65730       -.13405E-06** at limit **
  14  Prefactor     3.5935        4.6354        .57817E-07    .23032E-04
  15  norm          .10000E-03    9.4125        .20678E-06** at limit **
  16  Prefactor     .10000E-03    19.978        .72265E-06** at limit **
  17  Prefactor     .10000E-03    33.916        .29047E-05** at limit **
  18  Prefactor     .10000E-03    2.7985        .14142E-07** at limit **
  19  Prefactor     .10000E-03    10.077       -.17419E-06** at limit **
  20  norm          .10000E-03    3.0574        .32253E-07** at limit **
  21  Prefactor     .10000E-03    17.423       -.12224E-05** at limit **
  22  Prefactor     .10000E-03    20.380       -.52911E-06** at limit **
  23  Prefactor     .10000E-03    2.9455        .34402E-07** at limit **
  24  norm          .10000E-03    5.8782       -.26852E-08** at limit **
  25  Prefactor     43.646        35.988       -.15058E-05   -.17219E-04
  26  norm          6.9717        7.3105       -.18082E-06   -.13266E-04
  27  Prefactor     .10000E-03    19.891        .14139E-05** at limit **
  28  norm          .10000E-03    3.7951       -.71282E-08** at limit **
  29  Prefactor     .10000E-03    7.8541        .14298E-07** at limit **
  30  Prefactor     .10000E-03    10.921        .37015E-06** at limit **
  31  Normalizat    .72104        .18498        .34172E-05    .19691E-03
  32  Prefactor     1.4740        .21607       -.15095E-05    .38593E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 10.5145
  norm       = 1.31789
  norm       = 20.3558
  norm       = 11.9348
  Prefactor  = 0.00491309
  Prefactor  = 4.74027
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 23.6372
  norm       = 4.45882
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 3.59345
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 43.6456
  norm       = 6.97172
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.721045
  Prefactor  = 1.474
 **********
 **   18 **HESSE 
 **********

 FCN=   5760.832     FROM HESSE     STATUS=OK           657 CALLS     5066 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    34.589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.514        16.767        .12363E-03   -1.5059    
   3  norm          1.3179        3.4398        .22116E-03   -1.5478    
   4  norm          20.356        15.420        .88767E-04   -1.4805    
   5  norm          11.935        5.9523        .11596E-03   -1.5017    
   6  Prefactor     .49131E-02    15.308        .32530E-01   -1.5694    
   7  Prefactor     4.7403        33.369        .18727E-03   -1.5272    
   8  Prefactor     .10000E-03    31.292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    121.96        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     23.637        31.585        .82401E-04   -1.4735    
  11  norm          4.4588        3.9576        .13792E-03   -1.5286    
  12  Prefactor     .10000E-03    31.738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    9.9987        .11682E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.5935        4.6242        .17713E-03   -1.5329    
  15  norm          .10000E-03    9.4830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    20.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    34.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.9191        .24795E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.1233        .12953E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    17.685        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    20.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.0168        .25421E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    5.8844        .17973E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     43.646        36.023        .60688E-04   -1.4386    
  26  norm          6.9717        7.3051        .15194E-03   -1.5180    
  27  Prefactor     .10000E-03    19.916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    3.8034        .14440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    7.8599        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    11.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .72104        .21466        .27219E-03   -1.0307    
  32  Prefactor     1.4740        .25762        .24512E-03   -.78270    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.19871e-09
Minuit parameter uncertainties:
  1  0.000186594
  2  16.775
  3  3.44033
  4  15.4231
  5  5.95261
  6  0.543022
  7  25.1737
  8  0.000135118
  9  0.000689629
  10  31.6075
  11  3.95784
  12  0.000116455
  13  0.000192777
  14  4.62465
  15  9.82722e-06
  16  6.02383e-06
  17  0.000111977
  18  4.74732e-06
  19  2.09896e-05
  20  7.55788e-06
  21  9.1994e-05
  22  5.91217e-05
  23  1.35102e-05
  24  1.91709e-06
  25  36.0409
  26  7.30603
  27  6.33812e-05
  28  1.15239e-06
  29  4.71776e-06
  30  4.59207e-06
  31  0.214913
  32  0.25785
Done.

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

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  1.000e-04  9.827e-06  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.474e+00  2.579e-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:  7.210e-01  2.149e-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.33e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.59e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/95644/likelihoodResults_288057601_288316801_4FGL_J1359.7+4012_daily_bin188.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) = 5760.83260826
delta logL = -0.000502279263856

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5760.83210603
delta logL = -4.72846295452e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10105E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3356       1.0000          .0000       5.0000    
     3 'Normalizat'    .72106       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4740       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=   5760.832     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      243 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    230.29        .18142E-01** at limit **
   2  alpha         2.6056        3.4681        .16506       -.12742E-07
   3  Normalizat    .72105        .21384E-01    .27218E-03   -.47992E-04
   4  Prefactor     1.4740        .26599E-01    .24512E-03   -.43383E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.60559
  Normalizat = 0.721046
  Prefactor  = 1.474
 **********
 **   18 **HESSE 
 **********

 FCN=   5760.832     FROM HESSE     STATUS=OK            23 CALLS      266 TOTAL
                     EDM=   .80E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.9541        .45662E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.6056        3.5851        .66023E-02    .42250E-01
   3  Normalizat    .72105        .20522        .10887E-04   -1.0307    
   4  Prefactor     1.4740        .25541        .49025E-04   -.78271    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.03093e-12
Minuit parameter uncertainties:
  1  1.5681e-05
  2  394.881
  3  0.205438
  4  0.255635
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/95644': 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) = 5760.83210573
delta logL = 2.47106072493e-07

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  1.000e-04  1.568e-05  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  2.606e+00  3.949e+02  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.474e+00  2.556e-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:  7.210e-01  2.054e-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/95644/cmap_HighResolution_288057601_288316801_4FGL_J1359.7+4012_daily_bin188.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.59e-05', job_status='DONE', photon_flux_upper_limit='5.33e-08', time_completed='2021-09-08 19:51:00.826890', job_id='95644', GAL2='1.47', fit_tolerance='1e-08', EG2='0.72', EG='0.72', time_epoch_completed='1631155860.83', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.47', dlogl='2.47e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='188' AND source_name='4FGL J1359.7+4012' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 19:51:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 95644: <4FGL_J1359.7+4012_daily_bin188> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.7+4012_daily_bin188 209.928 40.2153 288057601 288316801 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 :                                   882.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             359.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   907 sec.
    Turnaround time :                            909 sec.

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

