/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 79 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 = 7383
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1359.7+4012_daily_bin588
RA = 209.928, Dec = 40.2153
tmin = 391737601, tmax = 391996801
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='97231', job_status='RUN', time_executed='2021-09-08 19:42:15.103790', time_epoch_executed='1631155335.1' WHERE source_name='4FGL J1359.7+4012' and cadence='daily' and bin_id='588'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/97231

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/97231/ft1_4FGL_J1359.7+4012_daily_bin588.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/97231/ft2_4FGL_J1359.7+4012_daily_bin588.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/97231/ft1_4FGL_J1359.7+4012_daily_bin588.fits outfile=/scratch/kocevski/97231/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin588.fits ra=209.928 dec=40.2153 rad=12.0 tmin=391737601.0 tmax=391996801.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.28
user 3.04
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/97231/ft1_filtered_4FGL_J1359.7+4012_daily_bin588.fits" evtable="EVENTS" scfile=/scratch/kocevski/97231/ft2_4FGL_J1359.7+4012_daily_bin588.fits sctable="SC_DATA" outfile=/scratch/kocevski/97231/ltcube_391737601_391996801_4FGL_J1359.7+4012_daily_bin588.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/97231/ft2_4FGL_J1359.7+4012_daily_bin588.fits
.....................!
real 11.75
user 11.33
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/97231/ft1_filtered_4FGL_J1359.7+4012_daily_bin588.fits evtable="EVENTS" scfile=/scratch/kocevski/97231/ft2_4FGL_J1359.7+4012_daily_bin588.fits sctable="SC_DATA" expcube=/scratch/kocevski/97231/ltcube_391737601_391996801_4FGL_J1359.7+4012_daily_bin588.fits outfile=/scratch/kocevski/97231/expmap_391737601_391996801_4FGL_J1359.7+4012_daily_bin588.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/97231/ltcube_391737601_391996801_4FGL_J1359.7+4012_daily_bin588.fits
.....................!
real 191.70
user 186.36
sys 5.03

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/97231/ft1_filtered_4FGL_J1359.7+4012_daily_bin588.fits scfile=/scratch/kocevski/97231/ft2_4FGL_J1359.7+4012_daily_bin588.fits outfile=/scratch/kocevski/97231/cmap_391737601_391996801_4FGL_J1359.7+4012_daily_bin588.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.55
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/97231/ft1_filtered_4FGL_J1359.7+4012_daily_bin588.fits scfile=/scratch/kocevski/97231/ft2_4FGL_J1359.7+4012_daily_bin588.fits outfile=/scratch/kocevski/97231/cmap_HighResolution_391737601_391996801_4FGL_J1359.7+4012_daily_bin588.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/97231/ft1_filtered_4FGL_J1359.7+4012_daily_bin588.fits evtable="EVENTS" scfile=/scratch/kocevski/97231/ft2_4FGL_J1359.7+4012_daily_bin588.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/97231/Model_4FGL_J1359.7+4012_daily_bin588.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/97231/ft1_filtered_4FGL_J1359.7+4012_daily_bin588.fits....................!
real 43.65
user 42.39
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.859       1.0000         .10000E-03   10000.    
     3 'norm      '    3.9162       1.0000         .10000E-03   10000.    
     4 'norm      '    15.601       1.0000         .10000E-03   10000.    
     5 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10305E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.526       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    55.181       1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    87.324       1.0000         .10000E-03   10000.    
    13 'norm      '    13.699       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    17.820       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11754E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    22.334       1.0000         .10000E-03   10000.    
    20 'norm      '    5.0436       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .43915       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    1.3227       1.0000         .10000E-03   10000.    
    27 'Prefactor '    35.745       1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .81919       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .97826       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=   5182.674     FROM MIGRAD    STATUS=CONVERGED    833 CALLS     4329 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    102.40        .39400E-04** at limit **
   2  Prefactor     14.861        17.496        .43264E-06   -.25745E-04
   3  norm          3.9159        5.0284       -.19000E-06   -.25632E-03
   4  norm          15.599        14.437       -.29612E-05   -.93728E-04
   5  norm          .10000E-03    1.4755        .95583E-07** at limit **
   6  Prefactor     .10000E-03    1.4927       -.15558E-07** at limit **
   7  Prefactor     .10000E-03    5.3598        .88289E-06** at limit **
   8  Prefactor     13.519        42.355       -.13664E-04   -.23222E-04
   9  Prefactor     .10000E-03    76.297       -.73799E-05** at limit **
  10  Prefactor     55.192        42.786        .78387E-05    .15210E-04
  11  norm          .10000E-03    1.2172        .81178E-09** at limit **
  12  Prefactor     87.340        62.752        .12335E-04   -.69721E-05
  13  norm          13.699        2.6647       -.13080E-06    .91853E-04
  14  Prefactor     .10000E-03    2.6175        .16403E-06** at limit **
  15  norm          17.823        15.543        .20921E-05   -.51058E-05
  16  Prefactor     .10000E-03    5.9838       -.29686E-05** at limit **
  17  Prefactor     .10000E-03    125.33       -.36069E-04** at limit **
  18  Prefactor     .10000E-03    1.5760        .19648E-07** at limit **
  19  Prefactor     22.336        22.844        .45546E-06    .64103E-04
  20  norm          5.0436        3.5448       -.71755E-06   -.26092E-04
  21  Prefactor     .10000E-03    3.7389       -.13135E-05** at limit **
  22  Prefactor     .10000E-03    6.5281        .13803E-05** at limit **
  23  Prefactor     .45380        2.3576       -.23084E-06   -.14672E-03
  24  norm          .10000E-03    5.2019        .14176E-05** at limit **
  25  Prefactor     .10000E-03    10.833        .77194E-08** at limit **
  26  norm          1.3231        2.7348       -.14876E-06   -.42105E-03
  27  Prefactor     35.750        30.694        .16007E-05    .11858E-05
  28  norm          .10000E-03    3.8355        .19800E-05** at limit **
  29  Prefactor     .10000E-03    4.5152       -.97306E-06** at limit **
  30  Prefactor     .10000E-03    4.3134       -.65243E-06** at limit **
  31  Normalizat    .81891        .17861       -.15893E-05    .13385E-03
  32  Prefactor     .97848        .20170        .64986E-06   -.24896E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 14.8612
  norm       = 3.91587
  norm       = 15.5993
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.5192
  Prefactor  = 0.0001
  Prefactor  = 55.1917
  norm       = 0.0001
  Prefactor  = 87.3401
  norm       = 13.699
  Prefactor  = 0.0001
  norm       = 17.8228
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 22.3361
  norm       = 5.04361
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.453803
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.3231
  Prefactor  = 35.7495
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.818909
  Prefactor  = 0.978483
 **********
 **   18 **HESSE 
 **********

 FCN=   5182.674     FROM HESSE     STATUS=OK           657 CALLS     4986 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    102.97        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     14.861        17.465        .10390E-03   -1.4937    
   3  norm          3.9159        4.9977        .17126E-03   -1.5312    
   4  norm          15.599        14.465        .10140E-03   -1.4918    
   5  norm          .10000E-03    1.4772        .85383E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.4143        .16958E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.3755        .16272E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.519        42.321        .10891E-03   -1.4972    
   9  Prefactor     .10000E-03    76.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     55.192        42.666        .53999E-04   -1.4221    
  11  norm          .10000E-03    1.2178        .77564E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     87.340        62.759        .21497E-03   -1.3836    
  13  norm          13.699        2.6672        .49140E-04   -1.4968    
  14  Prefactor     .10000E-03    4.7776        .22379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          17.823        15.541        .94879E-04   -1.4863    
  16  Prefactor     .10000E-03    5.9906        .17200E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    126.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.5774        .88247E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     22.336        22.926        .84756E-04   -1.4762    
  20  norm          5.0436        3.5348        .10933E-03   -1.5259    
  21  Prefactor     .10000E-03    3.7421        .13594E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.5427        .17962E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .45380        7.3295        .20365E-02   -1.5573    
  24  norm          .10000E-03    5.2074        .16037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    10.851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.3231        2.6794        .16660E-03   -1.5478    
  27  Prefactor     35.750        30.693        .67031E-04   -1.4511    
  28  norm          .10000E-03    3.8509        .13769E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    4.5169        .14940E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    4.3648        .14601E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .81891        .20628        .23540E-03   -.99371    
  32  Prefactor     .97848        .23470        .26596E-03   -.93450    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17592e-08
Minuit parameter uncertainties:
  1  0.000201893
  2  17.471
  3  4.99827
  4  14.4678
  5  5.70957e-06
  6  3.53942e-06
  7  2.67385e-08
  8  42.4152
  9  1.65454e-06
  10  42.6897
  11  1.93519e-07
  12  62.8066
  13  2.66723
  14  1.04336e-05
  15  15.5449
  16  1.85052e-06
  17  0.000559665
  18  1.61411e-06
  19  22.9348
  20  3.53498
  21  6.12967e-07
  22  1.6801e-07
  23  3.64767
  24  2.26267e-06
  25  2.24759e-06
  26  2.67967
  27  30.7061
  28  7.63236e-07
  29  1.42578e-06
  30  3.23822e-06
  31  0.206482
  32  0.234946
Done.

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

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  1.782e+01  1.554e+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:  9.785e-01  2.349e-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.189e-01  2.065e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.45
Ra Dec: 209.928 40.215
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 3.30e-08 +/- 2.88e-08
Energy Flux (Fixed Index): 9.84e-06 +/- 8.58e-06

TS (Fixed Index): 2.45
Ra Dec: 209.928 40.215
Photon Flux Upper Limit: 1.01e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.00e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/97231/likelihoodResults_391737601_391996801_4FGL_J1359.7+4012_daily_bin588.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) = 5182.60684746
delta logL = 0.0675511279042

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5182.60518658
delta logL = 0.0692120130107

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.803       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7064       1.0000          .0000       5.0000    
     3 'Normalizat'    .80523       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98843       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=   5182.605     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      260 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.795        15.118        .94923E-04   -.42158E-04
   2  alpha         2.7057        .99323        .23463E-01    .51521E-05
   3  Normalizat    .80526        .19335        .23712E-03   -.25410E-04
   4  Prefactor     .98842        .23384        .26476E-03   -.58399E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 17.7952
  alpha      = 2.70568
  Normalizat = 0.805262
  Prefactor  = 0.988421
 **********
 **   18 **HESSE 
 **********

 FCN=   5182.605     FROM HESSE     STATUS=OK            25 CALLS      285 TOTAL
                     EDM=   .61E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.795        14.891        .37969E-05   -1.4864    
   2  alpha         2.7057        .97817        .93851E-03    .82367E-01
   3  Normalizat    .80526        .19352        .94849E-05   -.99874    
   4  Prefactor     .98842        .23401        .10590E-04   -.93116    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.12114e-12
Minuit parameter uncertainties:
  1  14.8941
  2  1.00522
  3  0.193687
  4  0.234251
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/97231': 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) = 5182.60518607
delta logL = 0.0692125171881

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  1.780e+01  1.489e+01  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  2.706e+00  1.005e+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:  9.884e-01  2.343e-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.053e-01  1.937e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.59
Ra Dec: 209.928 40.215
Photon Index (Free Index): 2.71 +/- 1.01
Photon Flux (Free Index): 4.40e-08 +/- 4.47e-08
Energy Flux (Free Index): 1.05e-05 +/- 8.55e-06

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/97231/cmap_HighResolution_391737601_391996801_4FGL_J1359.7+4012_daily_bin588.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.00e-05', comment='SUCCESS', photon_flux='3.30e-08', energy_flux2='1.05e-05', photon_flux_error='2.88e-08', dlogl='6.92e-02', energy_flux='9.84e-06', photon_flux2='4.40e-08', job_status='DONE', time_completed='2021-09-08 19:56:24.907792', photon_index_error2='1.01', photon_index2='2.71', ts='2.45', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.01e-07', energy_flux_error2='8.55e-06', EG='0.82', time_epoch_completed='1631156184.91', return_code='0', job_id='97231', GAL2='0.99', EG2='0.81', return_code2='0', energy_flux_error='8.58e-06', photon_flux_error2='4.47e-08', ts2='2.59', photon_index='2.33' WHERE bin_id='588' AND source_name='4FGL J1359.7+4012' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 19:56:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 97231: <4FGL_J1359.7+4012_daily_bin588> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.7+4012_daily_bin588 209.928 40.2153 391737601 391996801 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 :                                   844.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             312.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   942 sec.
    Turnaround time :                            944 sec.

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

