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


Performing analysis on: 4FGL_J1359.7+4012_daily_bin1122
RA = 209.928, Dec = 40.2153
tmin = 530150401, tmax = 530409601
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='100206', job_status='RUN', time_executed='2021-09-08 19:50:44.935825', time_epoch_executed='1631155844.94' WHERE source_name='4FGL J1359.7+4012' and cadence='daily' and bin_id='1122'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/100206

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/100206/ft1_4FGL_J1359.7+4012_daily_bin1122.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/100206/ft2_4FGL_J1359.7+4012_daily_bin1122.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/100206/ft1_4FGL_J1359.7+4012_daily_bin1122.fits outfile=/scratch/kocevski/100206/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin1122.fits ra=209.928 dec=40.2153 rad=12.0 tmin=530150401.0 tmax=530409601.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.54
user 3.30
sys 0.20

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/100206/ft1_filtered_4FGL_J1359.7+4012_daily_bin1122.fits" evtable="EVENTS" scfile=/scratch/kocevski/100206/ft2_4FGL_J1359.7+4012_daily_bin1122.fits sctable="SC_DATA" outfile=/scratch/kocevski/100206/ltcube_530150401_530409601_4FGL_J1359.7+4012_daily_bin1122.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/100206/ft2_4FGL_J1359.7+4012_daily_bin1122.fits
.....................!
real 11.91
user 11.55
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/100206/ft1_filtered_4FGL_J1359.7+4012_daily_bin1122.fits evtable="EVENTS" scfile=/scratch/kocevski/100206/ft2_4FGL_J1359.7+4012_daily_bin1122.fits sctable="SC_DATA" expcube=/scratch/kocevski/100206/ltcube_530150401_530409601_4FGL_J1359.7+4012_daily_bin1122.fits outfile=/scratch/kocevski/100206/expmap_530150401_530409601_4FGL_J1359.7+4012_daily_bin1122.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/100206/ltcube_530150401_530409601_4FGL_J1359.7+4012_daily_bin1122.fits
.....................!
real 190.50
user 185.38
sys 4.79

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/100206/ft1_filtered_4FGL_J1359.7+4012_daily_bin1122.fits scfile=/scratch/kocevski/100206/ft2_4FGL_J1359.7+4012_daily_bin1122.fits outfile=/scratch/kocevski/100206/cmap_530150401_530409601_4FGL_J1359.7+4012_daily_bin1122.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/100206/ft1_filtered_4FGL_J1359.7+4012_daily_bin1122.fits scfile=/scratch/kocevski/100206/ft2_4FGL_J1359.7+4012_daily_bin1122.fits outfile=/scratch/kocevski/100206/cmap_HighResolution_530150401_530409601_4FGL_J1359.7+4012_daily_bin1122.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/100206/ft1_filtered_4FGL_J1359.7+4012_daily_bin1122.fits evtable="EVENTS" scfile=/scratch/kocevski/100206/ft2_4FGL_J1359.7+4012_daily_bin1122.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/100206/Model_4FGL_J1359.7+4012_daily_bin1122.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/100206/ft1_filtered_4FGL_J1359.7+4012_daily_bin1122.fits.....................!
real 50.98
user 49.68
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .57128       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12619E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.5554       1.0000         .10000E-03   10000.    
    10 'Prefactor '    39.038       1.0000         .10000E-03   10000.    
    11 'norm      '    9.1684       1.0000         .10000E-03   10000.    
    12 'Prefactor '    31.815       1.0000         .10000E-03   10000.    
    13 'norm      '    6.2844       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.5106       1.0000         .10000E-03   10000.    
    15 'norm      '    25.089       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.5890       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10305E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .50776       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    19.862       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    9.9067       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.2624       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .66338       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=   6365.095     FROM MIGRAD    STATUS=CONVERGED    814 CALLS     4275 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.556        .29809E-06** at limit **
   2  Prefactor     .10000E-03    5.7097        .23688E-06** at limit **
   3  norm          .10000E-03    1.6849        .24993E-07** at limit **
   4  norm          .10000E-03    4.9776       -.15184E-06** at limit **
   5  norm          .57232        4.0062        .23970E-05   -.60899E-04
   6  Prefactor     .10000E-03    2.1346        .61169E-06** at limit **
   7  Prefactor     .10000E-03    9.8520        .83680E-06** at limit **
   8  Prefactor     .10000E-03    15.651       -.62728E-06** at limit **
   9  Prefactor     3.5605        226.61        .16484E-05   -.11428E-04
  10  Prefactor     39.033        31.877       -.78165E-06   -.84683E-04
  11  norm          9.1685        4.9176        .18972E-08   -.23930E-04
  12  Prefactor     31.800        54.815       -.23667E-05   -.96600E-04
  13  norm          6.2842        1.7842        .14062E-07   -.22674E-04
  14  Prefactor     4.5114        4.7395        .18502E-06   -.45652E-04
  15  norm          25.089        15.867        .18854E-07   -.10849E-04
  16  Prefactor     .10000E-03    4.4798       -.52250E-07** at limit **
  17  Prefactor     8.5753        27.220       -.22389E-05   -.10107E-03
  18  Prefactor     .10000E-03    1.6636       -.10785E-06** at limit **
  19  Prefactor     .10000E-03    32.128       -.79717E-06** at limit **
  20  norm          .50814        1.9757        .12036E-05    .12882E-04
  21  Prefactor     .10000E-03    6.2136       -.11113E-06** at limit **
  22  Prefactor     .10000E-03    15.800       -.33771E-06** at limit **
  23  Prefactor     19.862        5.5459       -.43970E-07   -.65661E-04
  24  norm          .10000E-03    5.0653       -.66720E-07** at limit **
  25  Prefactor     .10000E-03    16.913       -.20975E-06** at limit **
  26  norm          .10000E-03    1.3875        .17218E-07** at limit **
  27  Prefactor     .10000E-03    22.835        .12767E-05** at limit **
  28  norm          9.9077        9.1368        .72863E-07   -.46881E-05
  29  Prefactor     .10000E-03    5.5196        .24969E-06** at limit **
  30  Prefactor     .10000E-03    7.5807       -.30710E-06** at limit **
  31  Normalizat    1.2624        .16968        .49203E-06   -.22122E-03
  32  Prefactor     .66319        .19497       -.13730E-05   -.75397E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.572323
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.56052
  Prefactor  = 39.0333
  norm       = 9.16851
  Prefactor  = 31.7997
  norm       = 6.28419
  Prefactor  = 4.51137
  norm       = 25.0885
  Prefactor  = 0.0001
  Prefactor  = 8.57525
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.50814
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.8619
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 9.90766
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.26242
  Prefactor  = 0.663186
 **********
 **   18 **HESSE 
 **********

 FCN=   6365.095     FROM HESSE     STATUS=OK           649 CALLS     4924 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    5.7287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.6932        .10111E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    4.9863        .17392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .57232        4.1247        .31307E-03   -1.5557    
   6  Prefactor     .10000E-03    4.4282        .21310E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.5605        210.61        .21435E-03   -1.5331    
  10  Prefactor     39.033        31.940        .64151E-04   -1.4458    
  11  norm          9.1685        4.9165        .12483E-03   -1.5102    
  12  Prefactor     31.800        55.932        .71038E-04   -1.4580    
  13  norm          6.2842        1.7856        .54108E-04   -1.5207    
  14  Prefactor     4.5114        4.7495        .16933E-03   -1.5283    
  15  norm          25.089        15.881        .79975E-04   -1.4706    
  16  Prefactor     .10000E-03    4.4814        .16493E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.5753        27.780        .13678E-03   -1.5122    
  18  Prefactor     .10000E-03    1.6726        .10042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    32.913        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .50814        1.9615        .21842E-03   -1.5565    
  21  Prefactor     .10000E-03    6.2511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    16.042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     19.862        5.5489        .89872E-04   -1.4816    
  24  norm          .10000E-03    5.0700        .17538E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    17.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    1.3896        .91773E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    23.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          9.9077        9.1381        .12731E-03   -1.5078    
  29  Prefactor     .10000E-03    5.5313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    7.7049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.2624        .19287        .20828E-03   -.84695    
  32  Prefactor     .66319        .21921        .33078E-03   -1.0499    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.79225e-10
Minuit parameter uncertainties:
  1  4.47209e-05
  2  1.62642e-05
  3  1.63317e-06
  4  1.37453e-05
  5  3.07293
  6  0.000179922
  7  4.86978e-05
  8  7.44455e-05
  9  54.9709
  10  31.9537
  11  4.91667
  12  56.0246
  13  1.78557
  14  4.74992
  15  15.8835
  16  4.63862e-06
  17  27.8217
  18  3.11515e-06
  19  8.23084e-05
  20  1.96175
  21  1.44034e-05
  22  6.78163e-05
  23  5.54903
  24  7.23649e-06
  25  4.42792e-05
  26  4.13838e-08
  27  0.000217479
  28  9.13936
  29  2.02767e-05
  30  3.45728e-05
  31  0.192978
  32  0.219495
Done.

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

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  2.509e+01  1.588e+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:  6.632e-01  2.195e-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:  1.262e+00  1.930e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.12
Ra Dec: 209.928 40.215
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 4.64e-08 +/- 2.94e-08
Energy Flux (Fixed Index): 1.38e-05 +/- 8.77e-06

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) = 6364.88941905
delta logL = 0.205740867062

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6364.88227464
delta logL = 0.21288527348

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    22.136       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8007       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2431       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67965       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=   6364.882     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      296 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          22.132        15.909        .85135E-04    .35254E-04
   2  alpha         2.8003        .75902        .17775E-01    .10592E-03
   3  Normalizat    1.2432        .18599        .20959E-03   -.38685E-04
   4  Prefactor     .67959        .21865        .32708E-03    .45602E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 22.1324
  alpha      = 2.80033
  Normalizat = 1.24318
  Prefactor  = 0.679586
 **********
 **   18 **HESSE 
 **********

 FCN=   6364.882     FROM HESSE     STATUS=OK            25 CALLS      321 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          22.132        15.541        .34054E-05   -1.4767    
   2  alpha         2.8003        .74161        .35549E-02    .12042    
   3  Normalizat    1.2432        .18610        .41919E-04   -.85279    
   4  Prefactor     .67959        .21874        .13083E-04   -1.0433    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.74671e-11
Minuit parameter uncertainties:
  1  15.5435
  2  0.753112
  3  0.186195
  4  0.219015
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/100206': 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) = 6364.88227431
delta logL = 0.212885606966

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  2.213e+01  1.554e+01  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  2.800e+00  7.531e-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:  6.796e-01  2.190e-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:  1.243e+00  1.862e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.55
Ra Dec: 209.928 40.215
Photon Index (Free Index): 2.80 +/- 0.75
Photon Flux (Free Index): 5.93e-08 +/- 3.88e-08
Energy Flux (Free Index): 1.35e-05 +/- 8.09e-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/100206/cmap_HighResolution_530150401_530409601_4FGL_J1359.7+4012_daily_bin1122.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.64e-08', energy_flux2='1.35e-05', photon_flux_error='2.94e-08', dlogl='2.13e-01', energy_flux='1.38e-05', photon_flux2='5.93e-08', job_status='DONE', time_completed='2021-09-08 20:04:43.400862', photon_index_error2='0.75', photon_index2='2.80', ts='4.12', fit_tolerance='1e-08', GAL='0.66', photon_index_error='0.00', energy_flux_error2='8.09e-06', EG='1.26', time_epoch_completed='1631156683.4', return_code='0', job_id='100206', GAL2='0.68', EG2='1.24', return_code2='0', energy_flux_error='8.77e-06', photon_flux_error2='3.88e-08', ts2='4.55', photon_index='2.33' WHERE bin_id='1122' AND source_name='4FGL J1359.7+4012' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 20:04:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 100206: <4FGL_J1359.7+4012_daily_bin1122> in cluster <slac> Done

Job <4FGL_J1359.7+4012_daily_bin1122> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  8 19:50:25 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 19:50:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 19:50:27 2021
Terminated at Wed Sep  8 20:04:46 2021
Results reported at Wed Sep  8 20:04:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.7+4012_daily_bin1122 209.928 40.2153 530150401 530409601 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 :                                   832.32 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             324.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   856 sec.
    Turnaround time :                            861 sec.

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

