/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 145 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 = 7415
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1359.7+4012_daily_bin15
RA = 209.928, Dec = 40.2153
tmin = 243216001, tmax = 243475201
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='94302', job_status='RUN', time_executed='2021-09-08 19:33:52.889436', time_epoch_executed='1631154832.89' WHERE source_name='4FGL J1359.7+4012' and cadence='daily' and bin_id='15'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/94302

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/94302/ft1_4FGL_J1359.7+4012_daily_bin15.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/94302/ft2_4FGL_J1359.7+4012_daily_bin15.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/94302/ft1_4FGL_J1359.7+4012_daily_bin15.fits outfile=/scratch/kocevski/94302/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin15.fits ra=209.928 dec=40.2153 rad=12.0 tmin=243216001.0 tmax=243475201.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 1.36
user 1.18
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/94302/ft2_4FGL_J1359.7+4012_daily_bin15.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/94302/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin15.fits evtable="EVENTS" outfile="/scratch/kocevski/94302/ft1_filtered_4FGL_J1359.7+4012_daily_bin15.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.50
user 0.35
sys 0.12

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/94302/ft1_filtered_4FGL_J1359.7+4012_daily_bin15.fits" evtable="EVENTS" scfile=/scratch/kocevski/94302/ft2_4FGL_J1359.7+4012_daily_bin15.fits sctable="SC_DATA" outfile=/scratch/kocevski/94302/ltcube_243216001_243475201_4FGL_J1359.7+4012_daily_bin15.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/94302/ft2_4FGL_J1359.7+4012_daily_bin15.fits
.....................!
real 12.48
user 12.15
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/94302/ft1_filtered_4FGL_J1359.7+4012_daily_bin15.fits evtable="EVENTS" scfile=/scratch/kocevski/94302/ft2_4FGL_J1359.7+4012_daily_bin15.fits sctable="SC_DATA" expcube=/scratch/kocevski/94302/ltcube_243216001_243475201_4FGL_J1359.7+4012_daily_bin15.fits outfile=/scratch/kocevski/94302/expmap_243216001_243475201_4FGL_J1359.7+4012_daily_bin15.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/94302/ltcube_243216001_243475201_4FGL_J1359.7+4012_daily_bin15.fits
.....................!
real 189.50
user 185.27
sys 3.92

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/94302/ft1_filtered_4FGL_J1359.7+4012_daily_bin15.fits scfile=/scratch/kocevski/94302/ft2_4FGL_J1359.7+4012_daily_bin15.fits outfile=/scratch/kocevski/94302/cmap_243216001_243475201_4FGL_J1359.7+4012_daily_bin15.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/94302/ft1_filtered_4FGL_J1359.7+4012_daily_bin15.fits scfile=/scratch/kocevski/94302/ft2_4FGL_J1359.7+4012_daily_bin15.fits outfile=/scratch/kocevski/94302/cmap_HighResolution_243216001_243475201_4FGL_J1359.7+4012_daily_bin15.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=209.928 yref=40.2153 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.39
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/94302/ft1_filtered_4FGL_J1359.7+4012_daily_bin15.fits evtable="EVENTS" scfile=/scratch/kocevski/94302/ft2_4FGL_J1359.7+4012_daily_bin15.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/94302/Model_4FGL_J1359.7+4012_daily_bin15.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/94302/ft1_filtered_4FGL_J1359.7+4012_daily_bin15.fits.....................!
real 42.58
user 41.31
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    15.516       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.6113       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10257E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.6383       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.4334       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.5308       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.427       1.0000         .10000E-03   10000.    
    20 'norm      '    1.7588       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.549       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.4239       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    14.760       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    12.280       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.2576       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .28139       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=   5026.500     FROM MIGRAD    STATUS=CONVERGED    848 CALLS     3704 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.087        .55867E-05** at limit **
   2  Prefactor     .10000E-03    8.7261       -.13992E-05** at limit **
   3  norm          .10000E-03    1.4812        .10046E-08** at limit **
   4  norm          15.516        13.359       -.14398E-07   -.11964E-04
   5  norm          .10000E-03    1.3975        .30476E-08** at limit **
   6  Prefactor     3.6098        3.1648       -.10878E-06   -.54090E-03
   7  Prefactor     .10000E-03    20.566        .84683E-05** at limit **
   8  Prefactor     .10000E-03    55.450        .51019E-05** at limit **
   9  Prefactor     .10000E-03    178.52       -.91046E-05** at limit **
  10  Prefactor     .10000E-03    24.088       -.57151E-06** at limit **
  11  norm          2.6387        4.0112        .62136E-06   -.31884E-03
  12  Prefactor     .10000E-03    25.858       -.12835E-04** at limit **
  13  norm          3.4335        1.4577       -.15682E-07   -.35982E-04
  14  Prefactor     8.5308        4.0096       -.38210E-06   -.54489E-04
  15  norm          .10000E-03    4.8760        .27882E-06** at limit **
  16  Prefactor     .10000E-03    4.1883       -.65933E-07** at limit **
  17  Prefactor     .10000E-03    13.406       -.10838E-04** at limit **
  18  Prefactor     .10000E-03    1.5734        .70987E-09** at limit **
  19  Prefactor     20.428        17.634       -.65602E-07    .17453E-04
  20  norm          1.7588        2.3676       -.62272E-07   -.21939E-03
  21  Prefactor     .10000E-03    3.6801        .17883E-07** at limit **
  22  Prefactor     11.550        13.226        .79478E-07   -.36028E-04
  23  Prefactor     2.4239        3.3592       -.18488E-06   -.49414E-03
  24  norm          .10000E-03    5.5527       -.42171E-06** at limit **
  25  Prefactor     14.760        23.197        .31809E-07   -.15703E-04
  26  norm          .10000E-03    2.0277        .99465E-08** at limit **
  27  Prefactor     .10000E-03    11.660        .96655E-05** at limit **
  28  norm          12.280        7.9925        .37363E-07    .35391E-04
  29  Prefactor     .10000E-03    7.5712        .20431E-05** at limit **
  30  Prefactor     .10000E-03    8.5385       -.24542E-05** at limit **
  31  Normalizat    1.2576        .17680        .33651E-06   -.37308E-04
  32  Prefactor     .28148        .19714       -.58748E-06   -.51934E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 15.5162
  norm       = 0.0001
  Prefactor  = 3.60982
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.63872
  Prefactor  = 0.0001
  norm       = 3.43348
  Prefactor  = 8.53083
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.4283
  norm       = 1.75885
  Prefactor  = 0.0001
  Prefactor  = 11.55
  Prefactor  = 2.42386
  norm       = 0.0001
  Prefactor  = 14.7601
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 12.2797
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.25755
  Prefactor  = 0.281475
 **********
 **   18 **HESSE 
 **********

 FCN=   5026.500     FROM HESSE     STATUS=OK           649 CALLS     4353 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.7575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.4836        .84256E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          15.516        13.352        .10168E-03   -1.4920    
   5  norm          .10000E-03    1.4012        .81847E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.6098        3.1636        .11241E-03   -1.5328    
   7  Prefactor     .10000E-03    20.792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    56.051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    180.47        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    24.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.6387        3.9883        .16872E-03   -1.5383    
  12  Prefactor     .10000E-03    25.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.4335        1.4595        .53491E-04   -1.5337    
  14  Prefactor     8.5308        4.0126        .93843E-04   -1.5124    
  15  norm          .10000E-03    4.8936        .15289E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.1889        .14171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.408        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.5769        .86837E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     20.428        17.701        .88621E-04   -1.4804    
  20  norm          1.7588        2.3464        .12262E-03   -1.5443    
  21  Prefactor     .10000E-03    3.6814        .13277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     11.550        13.238        .11788E-03   -1.5028    
  23  Prefactor     2.4239        3.3569        .14581E-03   -1.5397    
  24  norm          .10000E-03    5.5582        .16315E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     14.760        23.239        .10425E-03   -1.4939    
  26  norm          .10000E-03    2.0366        .98580E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    11.655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          12.280        7.9911        .11431E-03   -1.5007    
  29  Prefactor     .10000E-03    7.5793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    8.6494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.2576        .18440        .17439E-03   -.84842    
  32  Prefactor     .28148        .20007        .40122E-03   -1.2337    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.1237e-10
Minuit parameter uncertainties:
  1  2.41483e-06
  2  6.981e-07
  3  1.43286e-07
  4  13.3545
  5  9.31456e-07
  6  3.16374
  7  3.47532e-05
  8  0.000112446
  9  7.83742e-05
  10  2.89472e-05
  11  3.9887
  12  4.92513e-06
  13  1.45948
  14  4.01269
  15  9.87909e-08
  16  6.13714e-08
  17  2.73235e-06
  18  4.02561e-07
  19  17.7052
  20  2.3465
  21  4.46519e-07
  22  13.2414
  23  3.3572
  24  1.01034e-07
  25  23.2531
  26  2.13138e-07
  27  6.09674e-07
  28  7.99181
  29  2.14761e-07
  30  6.32222e-06
  31  0.184498
  32  0.200564
Done.

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

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  1.000e-04  9.879e-08  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:  2.815e-01  2.006e-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.258e+00  1.845e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/94302/likelihoodResults_243216001_243475201_4FGL_J1359.7+4012_daily_bin15.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) = 5026.50078221
delta logL = -0.000968328716226

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5026.49981388
delta logL = 4.64751792606e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3213       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2576       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .28146       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=   5026.500     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      231 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5.1463        .15312E-02** at limit **
   2  alpha         2.0428        3.1423        .16514E-01    .31667E-07
   3  Normalizat    1.2576        .17314        .17439E-03    .50392E-04
   4  Prefactor     .28148        .19853        .40122E-03    .24397E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.04281
  Normalizat = 1.25755
  Prefactor  = 0.281476
 **********
 **   18 **HESSE 
 **********

 FCN=   5026.500     FROM HESSE     STATUS=OK            23 CALLS      254 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.0784        .30623E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0428        3.6788        .66056E-03   -.18391    
   3  Normalizat    1.2576        .17317        .69757E-05   -.84842    
   4  Prefactor     .28148        .19856        .16049E-04   -1.2337    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47138e-11
Minuit parameter uncertainties:
  1  2.55548e-05
  2  321.73
  3  0.173247
  4  0.199037
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/94302': 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) = 5026.49981352
delta logL = 3.70713678421e-07

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  1.000e-04  2.555e-05  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  2.043e+00  3.217e+02  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:  2.815e-01  1.990e-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.258e+00  1.732e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 209.928 40.215

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/94302/cmap_HighResolution_243216001_243475201_4FGL_J1359.7+4012_daily_bin15.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.16e-05', job_status='DONE', photon_flux_upper_limit='3.90e-08', time_completed='2021-09-08 19:46:32.396962', job_id='94302', GAL2='0.28', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1631155592.4', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.28', dlogl='3.71e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='15' AND source_name='4FGL J1359.7+4012' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 19:46:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 94302: <4FGL_J1359.7+4012_daily_bin15> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.7+4012_daily_bin15 209.928 40.2153 243216001 243475201 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 :                                   759.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             262.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            916 sec.

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

