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


Performing analysis on: 4FGL_J1359.7+4012_daily_bin516
RA = 209.928, Dec = 40.2153
tmin = 373075201, tmax = 373334401
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='97118', job_status='RUN', time_executed='2021-09-08 19:40:43.496751', time_epoch_executed='1631155243.5' WHERE source_name='4FGL J1359.7+4012' and cadence='daily' and bin_id='516'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/97118

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/97118/ft1_4FGL_J1359.7+4012_daily_bin516.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/97118/ft2_4FGL_J1359.7+4012_daily_bin516.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/97118/ft1_4FGL_J1359.7+4012_daily_bin516.fits outfile=/scratch/kocevski/97118/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin516.fits ra=209.928 dec=40.2153 rad=12.0 tmin=373075201.0 tmax=373334401.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.16
user 3.48
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/97118/ft1_filtered_4FGL_J1359.7+4012_daily_bin516.fits" evtable="EVENTS" scfile=/scratch/kocevski/97118/ft2_4FGL_J1359.7+4012_daily_bin516.fits sctable="SC_DATA" outfile=/scratch/kocevski/97118/ltcube_373075201_373334401_4FGL_J1359.7+4012_daily_bin516.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/97118/ft2_4FGL_J1359.7+4012_daily_bin516.fits
.....................!
real 11.84
user 11.44
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/97118/ft1_filtered_4FGL_J1359.7+4012_daily_bin516.fits evtable="EVENTS" scfile=/scratch/kocevski/97118/ft2_4FGL_J1359.7+4012_daily_bin516.fits sctable="SC_DATA" expcube=/scratch/kocevski/97118/ltcube_373075201_373334401_4FGL_J1359.7+4012_daily_bin516.fits outfile=/scratch/kocevski/97118/expmap_373075201_373334401_4FGL_J1359.7+4012_daily_bin516.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/97118/ltcube_373075201_373334401_4FGL_J1359.7+4012_daily_bin516.fits
.....................!
real 190.08
user 185.31
sys 4.40

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/97118/ft1_filtered_4FGL_J1359.7+4012_daily_bin516.fits scfile=/scratch/kocevski/97118/ft2_4FGL_J1359.7+4012_daily_bin516.fits outfile=/scratch/kocevski/97118/cmap_373075201_373334401_4FGL_J1359.7+4012_daily_bin516.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=209.928 yref=40.2153 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    24.960       1.0000         .10000E-03   10000.    
     3 'norm      '    3.2427       1.0000         .10000E-03   10000.    
     4 'norm      '    3.7039       1.0000         .10000E-03   10000.    
     5 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.6305       1.0000         .10000E-03   10000.    
     8 'Prefactor '    44.058       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .37346E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    11.004       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.0945       1.0000         .10000E-03   10000.    
    15 'norm      '    41.191       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.8983       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11338E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    16.089       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.878       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    6.5592       1.0000         .10000E-03   10000.    
    29 'Prefactor '    5.9370       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .11759E-02   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .86938       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0655       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=   5346.166     FROM MIGRAD    STATUS=CONVERGED    838 CALLS     4376 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.747        .56933E-06** at limit **
   2  Prefactor     24.962        22.374        .84392E-07   -.13415E-04
   3  norm          3.2427        5.2847        .82627E-07   -.18892E-04
   4  norm          3.7040        13.033        .33691E-06   -.34888E-05
   5  norm          .10000E-03    1.2937        .48903E-07** at limit **
   6  Prefactor     .10000E-03    4.6722        .13905E-06** at limit **
   7  Prefactor     7.6316        17.531        .14924E-05   -.24470E-04
   8  Prefactor     44.066        36.082       -.50691E-06   -.53259E-04
   9  Prefactor     .10000E-03    45.560       -.35948E-05** at limit **
  10  Prefactor     .10000E-03    56.214        .13035E-05** at limit **
  11  norm          .10000E-03    1.8036        .37722E-07** at limit **
  12  Prefactor     .10000E-03    17.692       -.94579E-06** at limit **
  13  norm          11.004        2.4805        .50434E-07   -.14190E-03
  14  Prefactor     4.0953        4.7921        .17810E-05   -.24837E-03
  15  norm          41.190        20.634        .15709E-06   -.26889E-04
  16  Prefactor     .10000E-03    7.0096       -.37595E-06** at limit **
  17  Prefactor     .10000E-03    14.138       -.12559E-05** at limit **
  18  Prefactor     3.8981        3.7471       -.69172E-07   -.11930E-03
  19  Prefactor     .10000E-03    61.455        .16443E-05** at limit **
  20  norm          16.090        6.2134        .89506E-07   -.11892E-03
  21  Prefactor     .10000E-03    12.397        .10649E-05** at limit **
  22  Prefactor     15.875        17.229       -.22494E-06   -.14372E-03
  23  Prefactor     .10000E-03    2.1179       -.28797E-07** at limit **
  24  norm          .10000E-03    4.9513       -.11689E-06** at limit **
  25  Prefactor     .10000E-03    6.4928        .31597E-06** at limit **
  26  norm          .10000E-03    2.8459       -.27077E-07** at limit **
  27  Prefactor     .10000E-03    20.830        .16371E-05** at limit **
  28  norm          6.5585        6.4922       -.46949E-06    .64053E-04
  29  Prefactor     5.9349        10.769        .17901E-06    .63421E-05
  30  Prefactor     .10000E-03    7.3802       -.60397E-06** at limit **
  31  Normalizat    .86924        .19065       -.15576E-05   -.12340E-03
  32  Prefactor     1.0656        .21910        .44982E-06   -.95646E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 24.9625
  norm       = 3.24273
  norm       = 3.70397
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.63163
  Prefactor  = 44.0659
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 11.0044
  Prefactor  = 4.09526
  norm       = 41.19
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.89812
  Prefactor  = 0.0001
  norm       = 16.0895
  Prefactor  = 0.0001
  Prefactor  = 15.8754
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.55845
  Prefactor  = 5.93492
  Prefactor  = 0.000100001
  Normalizat = 0.869242
  Prefactor  = 1.06556
 **********
 **   18 **HESSE 
 **********

 FCN=   5346.166     FROM HESSE     STATUS=OK           655 CALLS     5031 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    33.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     24.962        22.385        .80180E-04   -1.4708    
   3  norm          3.2427        5.2553        .20055E-03   -1.5348    
   4  norm          3.7040        13.035        .20984E-03   -1.5323    
   5  norm          .10000E-03    1.2953        .81224E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.7802        .30503E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.6316        17.413        .72587E-03   -1.5155    
   8  Prefactor     44.066        36.045        .60400E-04   -1.4379    
   9  Prefactor     .10000E-03    45.793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    56.693        .21295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.8217        .95893E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    17.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          11.004        2.4840        .51670E-04   -1.5044    
  14  Prefactor     4.0953        4.8167        .82272E-03   -1.5303    
  15  norm          41.190        20.637        .62458E-04   -1.4423    
  16  Prefactor     .10000E-03    7.0132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    14.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.8981        3.7501        .13501E-03   -1.5313    
  19  Prefactor     .10000E-03    63.197        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          16.090        6.2125        .49925E-03   -1.4906    
  21  Prefactor     .10000E-03    12.479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     15.875        17.310        .10051E-03   -1.4911    
  23  Prefactor     .10000E-03    2.1857        .20770E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    4.9520        .15889E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    6.4969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    2.8770        .12044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    20.883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          6.5585        6.4974        .78347E-03   -1.5196    
  29  Prefactor     5.9349        10.744        .16480E-03   -1.5221    
  30  Prefactor     .10000E-03    25.566        .38109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .86924        .22675        .24623E-03   -.97550    
  32  Prefactor     1.0656        .26266        .27696E-03   -.90575    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.15045e-10
Minuit parameter uncertainties:
  1  6.37197e-05
  2  22.3924
  3  5.25607
  4  13.045
  5  3.30247e-06
  6  4.3013e-06
  7  17.425
  8  36.063
  9  0.000417478
  10  0.000673258
  11  3.12894e-06
  12  6.87957e-05
  13  2.48404
  14  4.81711
  15  20.6409
  16  1.68762e-05
  17  8.00044e-05
  18  3.75028
  19  0.000125514
  20  6.21275
  21  7.3926e-05
  22  17.3158
  23  1.13972e-06
  24  4.17299e-06
  25  1.36788e-05
  26  1.15218e-06
  27  0.000128257
  28  6.49805
  29  10.7474
  30  0.000324148
  31  0.226994
  32  0.262977
Done.

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

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  4.119e+01  2.064e+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.066e+00  2.630e-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:  8.692e-01  2.270e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.21
Ra Dec: 209.928 40.215
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 7.62e-08 +/- 3.82e-08
Energy Flux (Fixed Index): 2.27e-05 +/- 1.14e-05

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) = 5345.4067375
delta logL = 0.759740470723

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5345.39545397
delta logL = 0.771024003988

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    37.694       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6049       1.0000          .0000       5.0000    
     3 'Normalizat'    .91330       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0270       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=   5345.395     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      212 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 13.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          37.680        23.775       -.77272E-05   -.66683E-03
   2  alpha         1.6045        .58008       -.76636E-04    .74232E-04
   3  Normalizat    .91358        .17712        .30494E-05    .27770E-03
   4  Prefactor     1.0267        .21692       -.10759E-05    .29481E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 37.6797
  alpha      = 1.60449
  Normalizat = 0.913576
  Prefactor  = 1.02668
 **********
 **   18 **HESSE 
 **********

 FCN=   5345.395     FROM HESSE     STATUS=OK            27 CALLS      239 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          37.680        23.429        .65280E-04   -1.4480    
   2  alpha         1.6045        .57011        .13941E-01   -.36634    
   3  Normalizat    .91358        .21050        .24091E-03   -.95985    
   4  Prefactor     1.0267        .25849        .28136E-03   -.91846    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.83657e-10
Minuit parameter uncertainties:
  1  23.4345
  2  0.575934
  3  0.210687
  4  0.258807
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/97118': 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) = 5345.39545287
delta logL = 0.771025098277

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  3.768e+01  2.343e+01  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  1.604e+00  5.759e-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:  1.027e+00  2.588e-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.136e-01  2.107e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.75
Ra Dec: 209.928 40.215
Photon Index (Free Index): 1.60 +/- 0.58
Photon Flux (Free Index): 4.88e-08 +/- 3.47e-08
Energy Flux (Free Index): 2.82e-05 +/- 1.58e-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/97118/cmap_HighResolution_373075201_373334401_4FGL_J1359.7+4012_daily_bin516.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.62e-08', energy_flux2='2.82e-05', photon_flux_error='3.82e-08', dlogl='7.71e-01', energy_flux='2.27e-05', photon_flux2='4.88e-08', job_status='DONE', time_completed='2021-09-08 19:53:32.195312', photon_index_error2='0.58', photon_index2='1.60', ts='8.21', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='1.58e-05', EG='0.87', time_epoch_completed='1631156012.2', return_code='0', job_id='97118', GAL2='1.03', EG2='0.91', return_code2='0', energy_flux_error='1.14e-05', photon_flux_error2='3.47e-08', ts2='9.75', photon_index='2.33' WHERE bin_id='516' AND source_name='4FGL J1359.7+4012' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 19:53:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0125>
Subject: Job 97118: <4FGL_J1359.7+4012_daily_bin516> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.7+4012_daily_bin516 209.928 40.2153 373075201 373334401 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 :                                   763.00 sec.
    Max Memory :                                 1082 MB
    Average Memory :                             330.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   780 sec.
    Turnaround time :                            781 sec.

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

