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


Performing analysis on: 4FGL_J1359.7+4012_daily_bin1055
RA = 209.928, Dec = 40.2153
tmin = 512784001, tmax = 513043201
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='98985', job_status='RUN', time_executed='2021-09-08 19:46:12.813114', time_epoch_executed='1631155572.81' WHERE source_name='4FGL J1359.7+4012' and cadence='daily' and bin_id='1055'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/98985

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/98985/ft1_4FGL_J1359.7+4012_daily_bin1055.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/98985/ft2_4FGL_J1359.7+4012_daily_bin1055.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/98985/ft1_4FGL_J1359.7+4012_daily_bin1055.fits outfile=/scratch/kocevski/98985/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin1055.fits ra=209.928 dec=40.2153 rad=12.0 tmin=512784001.0 tmax=513043201.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.39
user 4.13
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/98985/ft1_filtered_4FGL_J1359.7+4012_daily_bin1055.fits" evtable="EVENTS" scfile=/scratch/kocevski/98985/ft2_4FGL_J1359.7+4012_daily_bin1055.fits sctable="SC_DATA" outfile=/scratch/kocevski/98985/ltcube_512784001_513043201_4FGL_J1359.7+4012_daily_bin1055.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/98985/ft2_4FGL_J1359.7+4012_daily_bin1055.fits
.....................!
real 12.28
user 11.89
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/98985/ft1_filtered_4FGL_J1359.7+4012_daily_bin1055.fits evtable="EVENTS" scfile=/scratch/kocevski/98985/ft2_4FGL_J1359.7+4012_daily_bin1055.fits sctable="SC_DATA" expcube=/scratch/kocevski/98985/ltcube_512784001_513043201_4FGL_J1359.7+4012_daily_bin1055.fits outfile=/scratch/kocevski/98985/expmap_512784001_513043201_4FGL_J1359.7+4012_daily_bin1055.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/98985/ltcube_512784001_513043201_4FGL_J1359.7+4012_daily_bin1055.fits
.....................!
real 190.24
user 185.75
sys 4.13

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/98985/ft1_filtered_4FGL_J1359.7+4012_daily_bin1055.fits scfile=/scratch/kocevski/98985/ft2_4FGL_J1359.7+4012_daily_bin1055.fits outfile=/scratch/kocevski/98985/cmap_512784001_513043201_4FGL_J1359.7+4012_daily_bin1055.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/98985/ft1_filtered_4FGL_J1359.7+4012_daily_bin1055.fits scfile=/scratch/kocevski/98985/ft2_4FGL_J1359.7+4012_daily_bin1055.fits outfile=/scratch/kocevski/98985/cmap_HighResolution_512784001_513043201_4FGL_J1359.7+4012_daily_bin1055.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/98985/ft1_filtered_4FGL_J1359.7+4012_daily_bin1055.fits evtable="EVENTS" scfile=/scratch/kocevski/98985/ft2_4FGL_J1359.7+4012_daily_bin1055.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/98985/Model_4FGL_J1359.7+4012_daily_bin1055.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/98985/ft1_filtered_4FGL_J1359.7+4012_daily_bin1055.fits.....................!
real 65.76
user 64.41
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/98985/ft1_filtered_4FGL_J1359.7+4012_daily_bin1055.fits', '/scratch/kocevski/98985/ft2_4FGL_J1359.7+4012_daily_bin1055.fits', expMap='/scratch/kocevski/98985/expmap_512784001_513043201_4FGL_J1359.7+4012_daily_bin1055.fits', expCube='/scratch/kocevski/98985/ltcube_512784001_513043201_4FGL_J1359.7+4012_daily_bin1055.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/98985/Model_4FGL_J1359.7+4012_daily_bin1055.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/98985/ft1_filtered_4FGL_J1359.7+4012_daily_bin1055.fits
Spacecraft file(s): /scratch/kocevski/98985/ft2_4FGL_J1359.7+4012_daily_bin1055.fits
Exposure map: /scratch/kocevski/98985/expmap_512784001_513043201_4FGL_J1359.7+4012_daily_bin1055.fits
Exposure cube: /scratch/kocevski/98985/ltcube_512784001_513043201_4FGL_J1359.7+4012_daily_bin1055.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/98985/Model_4FGL_J1359.7+4012_daily_bin1055.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 8500.83696459

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.8415       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.3005       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.7894       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.756       1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.077       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12321E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.6847       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.2208       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    29.680       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.2474       1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.607       1.0000         .10000E-03   10000.    
    20 'norm      '    1.5105       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10247E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.5388       1.0000         .10000E-03   10000.    
    24 'norm      '    1.3769       1.0000         .10000E-03   10000.    
    25 'Prefactor '    66.061       1.0000         .10000E-03   10000.    
    26 'norm      '    18.639       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   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 '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.2497       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .65482       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=   8500.790     FROM MIGRAD    STATUS=CONVERGED    848 CALLS     3742 TOTAL
                     EDM=   .36E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.8382        34.993       -.43739E-05   -.66367E-06
   2  Prefactor     .10000E-03    3.9175        .14492E-06** at limit **
   3  norm          .10000E-03    .89809       -.11397E-07** at limit **
   4  norm          4.3011        9.4131        .18801E-06    .11814E-05
   5  norm          .10000E-03    .88824        .94682E-08** at limit **
   6  Prefactor     7.7899        3.2507        .10764E-05    .46354E-04
   7  Prefactor     13.757        13.332        .20988E-07    .10311E-04
   8  Prefactor     17.076        22.385        .26892E-07    .50770E-04
   9  Prefactor     .10000E-03    80.623       -.79822E-05** at limit **
  10  Prefactor     .10000E-03    40.224       -.89081E-05** at limit **
  11  norm          5.6844        4.3180       -.21923E-06    .41788E-04
  12  Prefactor     .10000E-03    49.733        .15020E-04** at limit **
  13  norm          6.2206        1.6390        .73965E-07    .12357E-03
  14  Prefactor     .10000E-03    1.1636       -.89074E-09** at limit **
  15  norm          29.679        13.255       -.67987E-07   -.45560E-04
  16  Prefactor     .10000E-03    12.725        .14342E-05** at limit **
  17  Prefactor     .10000E-03    28.922        .22067E-06** at limit **
  18  Prefactor     3.2472        2.9435       -.44713E-06    .11782E-04
  19  Prefactor     13.603        19.494       -.17946E-07    .96540E-06
  20  norm          1.5087        .57980        .56684E-08   -.13779E-02
  21  Prefactor     .10000E-03    10.006        .97864E-06** at limit **
  22  Prefactor     .10000E-03    12.556       -.23860E-06** at limit **
  23  Prefactor     2.5389        2.9942        .18896E-05    .99572E-05
  24  norm          1.3776        17.375       -.16503E-05   -.32168E-04
  25  Prefactor     66.057        25.899       -.81964E-06   -.62445E-05
  26  norm          18.638        6.7168       -.31564E-07   -.18953E-04
  27  Prefactor     .10000E-03    11.068       -.19971E-05** at limit **
  28  norm          .10000E-03    2.0386       -.89162E-07** at limit **
  29  Prefactor     .10000E-03    4.5834       -.59423E-07** at limit **
  30  Prefactor     .10000E-03    3.8114       -.14057E-06** at limit **
  31  Normalizat    1.2498        .15092       -.58946E-06    .24635E-04
  32  Prefactor     .65472        .17097        .39725E-07   -.38629E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.83823
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.30114
  norm       = 0.0001
  Prefactor  = 7.78993
  Prefactor  = 13.7573
  Prefactor  = 17.0763
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.68444
  Prefactor  = 0.0001
  norm       = 6.22064
  Prefactor  = 0.0001
  norm       = 29.6795
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.24723
  Prefactor  = 13.6033
  norm       = 1.50873
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.5389
  norm       = 1.37757
  Prefactor  = 66.0565
  norm       = 18.6377
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.24982
  Prefactor  = 0.654723
 **********
 **   18 **HESSE 
 **********

 FCN=   8500.790     FROM HESSE     STATUS=OK           659 CALLS     4401 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.8382        34.967        .12773E-03   -1.5081    
   2  Prefactor     .10000E-03    3.9220        .17821E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .89880        .85327E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.3011        9.3972        .19426E-03   -1.5293    
   5  norm          .10000E-03    .88913        .84853E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.7899        3.2540        .97155E-04   -1.5150    
   7  Prefactor     13.757        13.342        .10800E-03   -1.4966    
   8  Prefactor     17.076        22.405        .96920E-04   -1.4881    
   9  Prefactor     .10000E-03    82.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    40.310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.6844        4.3199        .16089E-03   -1.5231    
  12  Prefactor     .10000E-03    49.755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.2206        1.6424        .57805E-04   -1.5209    
  14  Prefactor     .10000E-03    2.0254        .19300E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          29.679        13.269        .73542E-04   -1.4618    
  16  Prefactor     .10000E-03    12.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    29.012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.2472        2.9445        .14566E-03   -1.5348    
  19  Prefactor     13.603        19.620        .10858E-03   -1.4970    
  20  norm          1.5087        3.8942        .13508E-02   -1.5462    
  21  Prefactor     .10000E-03    10.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    12.690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.5389        3.0011        .16480E-03   -1.5389    
  24  norm          1.3776        17.680        .37117E-03   -1.5473    
  25  Prefactor     66.057        25.919        .49379E-04   -1.4081    
  26  norm          18.638        6.7198        .92771E-04   -1.4844    
  27  Prefactor     .10000E-03    11.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    2.0400        .12856E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    4.5880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    3.8294        .17577E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.2498        .18109        .21589E-03   -.85077    
  32  Prefactor     .65472        .20141        .33857E-03   -1.0533    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75739e-09
Minuit parameter uncertainties:
  1  35.0398
  2  3.67366e-06
  3  1.73863e-06
  4  9.40047
  5  6.5279e-07
  6  3.25407
  7  13.3449
  8  22.4163
  9  0.000163952
  10  8.56814e-05
  11  4.32009
  12  1.34083e-05
  13  1.64243
  14  1.61149e-06
  15  13.2698
  16  5.45662e-06
  17  3.66063e-05
  18  2.94466
  19  19.6297
  20  3.89487
  21  3.25344e-05
  22  2.53997e-05
  23  3.00127
  24  9.87335
  25  25.9238
  26  6.72007
  27  4.16097e-06
  28  2.38149e-07
  29  4.57943e-08
  30  1.92652e-06
  31  0.181183
  32  0.201631
Done.

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

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  2.968e+01  1.327e+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.547e-01  2.016e-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.250e+00  1.812e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.89
Ra Dec: 209.928 40.215
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 5.49e-08 +/- 2.46e-08
Energy Flux (Fixed Index): 1.64e-05 +/- 7.32e-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) = 8500.18632692
delta logL = 0.603210935387

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8500.15739286
delta logL = 0.632144986377

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    27.075       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7526       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2742       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63656       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=   8500.157     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      214 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          27.070        14.004       -.19471E-05    .49006E-03
   2  alpha         1.7523        .50294       -.41975E-04   -.18068E-04
   3  Normalizat    1.2742        .14514        .11620E-05    .29004E-03
   4  Prefactor     .63654        .16978       -.77781E-06    .18582E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 27.07
  alpha      = 1.75229
  Normalizat = 1.27419
  Prefactor  = 0.636544
 **********
 **   18 **HESSE 
 **********

 FCN=   8500.157     FROM HESSE     STATUS=OK            29 CALLS      243 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          27.070        13.882        .38495E-03   -1.4667    
   2  alpha         1.7523        .49722        .16023E-01   -.30373    
   3  Normalizat    1.2742        .16984        .21413E-03   -.84340    
   4  Prefactor     .63654        .19847        .34291E-03   -1.0607    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.71645e-10
Minuit parameter uncertainties:
  1  13.884
  2  0.50089
  3  0.169915
  4  0.198688
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/98985': 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) = 8500.15739254
delta logL = 0.632145309301

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  2.707e+01  1.388e+01  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  1.752e+00  5.009e-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.365e-01  1.987e-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.274e+00  1.699e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.15
Ra Dec: 209.928 40.215
Photon Index (Free Index): 1.75 +/- 0.50
Photon Flux (Free Index): 3.67e-08 +/- 2.26e-08
Energy Flux (Free Index): 1.80e-05 +/- 8.63e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/98985/cmap_HighResolution_512784001_513043201_4FGL_J1359.7+4012_daily_bin1055.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.49e-08', energy_flux2='1.80e-05', photon_flux_error='2.46e-08', dlogl='6.32e-01', energy_flux='1.64e-05', photon_flux2='3.67e-08', job_status='DONE', time_completed='2021-09-08 20:02:07.678432', photon_index_error2='0.50', photon_index2='1.75', ts='12.89', fit_tolerance='1e-08', GAL='0.65', photon_index_error='0.00', energy_flux_error2='8.63e-06', EG='1.25', time_epoch_completed='1631156527.68', return_code='0', job_id='98985', GAL2='0.64', EG2='1.27', return_code2='0', energy_flux_error='7.32e-06', photon_flux_error2='2.26e-08', ts2='14.15', photon_index='2.33' WHERE bin_id='1055' AND source_name='4FGL J1359.7+4012' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 20:02:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 98985: <4FGL_J1359.7+4012_daily_bin1055> in cluster <slac> Done

Job <4FGL_J1359.7+4012_daily_bin1055> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  8 19:45:52 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 19:45:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 19:45:54 2021
Terminated at Wed Sep  8 20:02:08 2021
Results reported at Wed Sep  8 20:02:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.7+4012_daily_bin1055 209.928 40.2153 512784001 513043201 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 :                                   947.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             299.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   973 sec.
    Turnaround time :                            976 sec.

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

