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


Performing analysis on: 4FGL_J1359.7+4012_daily_bin844
RA = 209.928, Dec = 40.2153
tmin = 458092801, tmax = 458352001
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='98633', job_status='RUN', time_executed='2021-09-08 19:45:39.334676', time_epoch_executed='1631155539.33' WHERE source_name='4FGL J1359.7+4012' and cadence='daily' and bin_id='844'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/98633

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/98633/ft1_4FGL_J1359.7+4012_daily_bin844.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/98633/ft2_4FGL_J1359.7+4012_daily_bin844.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/98633/ft1_4FGL_J1359.7+4012_daily_bin844.fits outfile=/scratch/kocevski/98633/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin844.fits ra=209.928 dec=40.2153 rad=12.0 tmin=458092801.0 tmax=458352001.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.58
user 3.37
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/98633/ft1_filtered_4FGL_J1359.7+4012_daily_bin844.fits" evtable="EVENTS" scfile=/scratch/kocevski/98633/ft2_4FGL_J1359.7+4012_daily_bin844.fits sctable="SC_DATA" outfile=/scratch/kocevski/98633/ltcube_458092801_458352001_4FGL_J1359.7+4012_daily_bin844.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/98633/ft2_4FGL_J1359.7+4012_daily_bin844.fits
.....................!
real 11.96
user 11.60
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/98633/ft1_filtered_4FGL_J1359.7+4012_daily_bin844.fits evtable="EVENTS" scfile=/scratch/kocevski/98633/ft2_4FGL_J1359.7+4012_daily_bin844.fits sctable="SC_DATA" expcube=/scratch/kocevski/98633/ltcube_458092801_458352001_4FGL_J1359.7+4012_daily_bin844.fits outfile=/scratch/kocevski/98633/expmap_458092801_458352001_4FGL_J1359.7+4012_daily_bin844.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/98633/ltcube_458092801_458352001_4FGL_J1359.7+4012_daily_bin844.fits
.....................!
real 192.19
user 186.30
sys 5.17

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/98633/ft1_filtered_4FGL_J1359.7+4012_daily_bin844.fits scfile=/scratch/kocevski/98633/ft2_4FGL_J1359.7+4012_daily_bin844.fits outfile=/scratch/kocevski/98633/cmap_458092801_458352001_4FGL_J1359.7+4012_daily_bin844.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.54
user 0.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/98633/ft1_filtered_4FGL_J1359.7+4012_daily_bin844.fits evtable="EVENTS" scfile=/scratch/kocevski/98633/ft2_4FGL_J1359.7+4012_daily_bin844.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/98633/Model_4FGL_J1359.7+4012_daily_bin844.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/98633/ft1_filtered_4FGL_J1359.7+4012_daily_bin844.fits.....................!
real 49.06
user 47.72
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10430E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.1173       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .56691       1.0000         .10000E-03   10000.    
     9 'Prefactor '    28.626       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10973E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.475       1.0000         .10000E-03   10000.    
    13 'norm      '    3.3517       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11847E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    13.785       1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.458       1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.180       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .15068E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11616E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.153       1.0000         .10000E-03   10000.    
    24 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    7.1669       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10229E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    17.003       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0001       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.1397       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=   5956.975     FROM MIGRAD    STATUS=CONVERGED    840 CALLS     4320 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    66.418       -.11864E-05** at limit **
   2  Prefactor     .10000E-03    8.1188       -.32297E-06** at limit **
   3  norm          .10000E-03    2.1670       -.34028E-06** at limit **
   4  norm          .10000E-03    6.2198       -.21268E-06** at limit **
   5  norm          .10000E-03    4.3118        .23165E-06** at limit **
   6  Prefactor     8.1135        5.6129       -.10125E-05   -.35853E-04
   7  Prefactor     .10000E-03    7.3932       -.63208E-06** at limit **
   8  Prefactor     .64046        132.37        .10520E-04   -.65005E-05
   9  Prefactor     28.704        87.199        .14467E-04    .13126E-04
  10  Prefactor     .10000E-03    25.494       -.41763E-08** at limit **
  11  norm          .10000E-03    2.4019        .12161E-06** at limit **
  12  Prefactor     19.476        74.350       -.87172E-06   -.24371E-05
  13  norm          3.3518        1.5720       -.27111E-07   -.50795E-04
  14  Prefactor     .10001E-03    2.8991       -.83916E-07** at limit **
  15  norm          13.783        12.276        .52215E-07   -.11381E-04
  16  Prefactor     15.467        17.216        .32681E-06   -.22178E-04
  17  Prefactor     14.199        32.867        .23237E-05    .36222E-05
  18  Prefactor     .10000E-03    1.6857       -.20587E-07** at limit **
  19  Prefactor     .10000E-03    7.1762        .39289E-06** at limit **
  20  norm          .10000E-03    1.9196       -.10321E-06** at limit **
  21  Prefactor     .10001E-03    13.100        .19007E-05** at limit **
  22  Prefactor     .10000E-03    56.662        .28051E-05** at limit **
  23  Prefactor     10.154        5.5121       -.76396E-07   -.85260E-04
  24  norm          .10000E-03    5.1262        .45357E-07** at limit **
  25  Prefactor     .10000E-03    24.378       -.58283E-06** at limit **
  26  norm          7.1650        7.1797       -.13959E-06   -.41648E-04
  27  Prefactor     .10000E-03    14.416        .62051E-06** at limit **
  28  norm          .10000E-03    3.0495       -.14236E-06** at limit **
  29  Prefactor     .10000E-03    6.4719       -.16715E-06** at limit **
  30  Prefactor     17.003        12.022        .48115E-07   -.64761E-05
  31  Normalizat    1.0001        .18806        .84186E-06   -.17320E-03
  32  Prefactor     1.1397        .21314       -.15433E-05   -.27664E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 8.11348
  Prefactor  = 0.0001
  Prefactor  = 0.640463
  Prefactor  = 28.7041
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 19.4761
  norm       = 3.35185
  Prefactor  = 0.000100005
  norm       = 13.7834
  Prefactor  = 15.4669
  Prefactor  = 14.1992
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 10.1538
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 7.16499
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.0028
  Normalizat = 1.00009
  Prefactor  = 1.13973
 **********
 **   18 **HESSE 
 **********

 FCN=   5956.975     FROM HESSE     STATUS=OK           657 CALLS     4977 TOTAL
                     EDM=   .51E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    66.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.1311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.1735        .11098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    6.2246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.4499        .31261E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     8.1135        5.5969        .63227E-03   -1.5138    
   7  Prefactor     .10000E-03    7.4045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .64046        139.27        .66591E-02   -1.5548    
   9  Prefactor     28.704        87.748        .74881E-04   -1.4636    
  10  Prefactor     .10000E-03    25.611        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.4601        .11679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     19.476        74.748        .90759E-04   -1.4825    
  13  norm          3.3518        1.5692        .63329E-04   -1.5342    
  14  Prefactor     .10001E-03    10.038        .24045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          13.783        12.269        .10788E-03   -1.4965    
  16  Prefactor     15.467        16.929        .10187E-03   -1.4921    
  17  Prefactor     14.199        32.843        .10637E-03   -1.4954    
  18  Prefactor     .10000E-03    1.7004        .97827E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.1932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.9402        .10439E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    67.241        .43635E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    57.954        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     10.154        5.5091        .62876E-03   -1.5071    
  24  norm          .10000E-03    5.1289        .17065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    24.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          7.1650        7.1666        .74918E-03   -1.5173    
  27  Prefactor     .10000E-03    14.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    3.0512        .13163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    6.4757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     17.003        12.016        .97129E-04   -1.4883    
  31  Normalizat    1.0001        .22202        .24274E-03   -.93028    
  32  Prefactor     1.1397        .25551        .27528E-03   -.88207    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.0783e-08
Minuit parameter uncertainties:
  1  5.40634e-09
  2  4.02939e-07
  3  6.89167e-07
  4  5.99609e-07
  5  3.46057e-06
  6  5.59721
  7  2.21578e-05
  8  18.9319
  9  88.1462
  10  6.79785e-06
  11  1.15574e-06
  12  75.1107
  13  1.56923
  14  0.000453352
  15  12.271
  16  16.9341
  17  32.8853
  18  2.42564e-06
  19  8.74523e-08
  20  4.98379e-07
  21  0.00119775
  22  0.000103775
  23  5.50939
  24  7.17699e-07
  25  5.96976e-06
  26  7.16748
  27  4.78742e-06
  28  4.01532e-07
  29  9.49165e-07
  30  12.0177
  31  0.222225
  32  0.255787
Done.

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

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  1.378e+01  1.227e+01  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  2.327e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
324         beta:  2.597e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
325           Eb:  4.424e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
617    Prefactor:  1.140e+00  2.558e-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.000e+00  2.222e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.88
Ra Dec: 209.928 40.215
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 2.55e-08 +/- 2.27e-08
Energy Flux (Fixed Index): 7.61e-06 +/- 6.77e-06

TS (Fixed Index): 2.88
Ra Dec: 209.928 40.215
Photon Flux Upper Limit: 8.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.52e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/98633/likelihoodResults_458092801_458352001_4FGL_J1359.7+4012_daily_bin844.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) = 5956.30504444
delta logL = 0.669817604416

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5956.14458276
delta logL = 0.83027928265

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.3202       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.0690       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0231       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1223       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.

 FCN=   5956.145     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      216 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.3267        6.4175        .37061E-02   -.11984E-02
   2  alpha         1.0689        .60249        .48751       -.27428E-04
   3  Normalizat    1.0230        .17366        .42932E-01    .94076E-05
   4  Prefactor     1.1223        .20953        .62620E-01    .91173E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 7.32672
  alpha      = 1.0689
  Normalizat = 1.02303
  Prefactor  = 1.12234
 **********
 **   18 **HESSE 
 **********

 FCN=   5956.145     FROM HESSE     STATUS=OK            31 CALLS      247 TOTAL
                     EDM=   .27E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.3267        9.2665        .74123E-03   -1.5167    
   2  alpha         1.0689        .85326        .21620E-02   -.60948    
   3  Normalizat    1.0230        .20914        .24024E-03   -.92263    
   4  Prefactor     1.1223        .25216        .27697E-03   -.88756    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.73719e-12
Minuit parameter uncertainties:
  1  9.26832
  2  0.880044
  3  0.209313
  4  0.252425
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/98633': 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) = 5956.1445819
delta logL = 0.83028013974

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  7.327e+00  9.268e+00  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  1.069e+00  8.800e-01  0.000e+00  5.000e+00 ( 1.000e+00)
324         beta:  2.597e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
325           Eb:  4.424e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
617    Prefactor:  1.122e+00  2.524e-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.023e+00  2.093e-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): 1.07 +/- 0.88
Photon Flux (Free Index): 9.46e-09 +/- 1.04e-08
Energy Flux (Free Index): 1.13e-05 +/- 1.20e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/98633/cmap_HighResolution_458092801_458352001_4FGL_J1359.7+4012_daily_bin844.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.52e-05', comment='SUCCESS', photon_flux='2.55e-08', energy_flux2='1.13e-05', photon_flux_error='2.27e-08', dlogl='8.30e-01', energy_flux='7.61e-06', photon_flux2='9.46e-09', job_status='DONE', time_completed='2021-09-08 20:00:46.568701', photon_index_error2='0.88', photon_index2='1.07', ts='2.88', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', photon_flux_upper_limit='8.45e-08', energy_flux_error2='1.20e-05', EG='1.00', time_epoch_completed='1631156446.57', return_code='0', job_id='98633', GAL2='1.12', EG2='1.02', return_code2='0', energy_flux_error='6.77e-06', photon_flux_error2='1.04e-08', ts2='4.55', photon_index='2.33' WHERE bin_id='844' AND source_name='4FGL J1359.7+4012' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 20:00:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0155>
Subject: Job 98633: <4FGL_J1359.7+4012_daily_bin844> in cluster <slac> Done

Job <4FGL_J1359.7+4012_daily_bin844> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  8 19:45:22 2021
Job was executed on host(s) <bullet0155>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 19:45:24 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:24 2021
Terminated at Wed Sep  8 20:00:47 2021
Results reported at Wed Sep  8 20:00:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.7+4012_daily_bin844 209.928 40.2153 458092801 458352001 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 :                                   903.20 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             335.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   922 sec.
    Turnaround time :                            925 sec.

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

