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


Performing analysis on: 4FGL_J1359.7+4012_daily_bin1205
RA = 209.928, Dec = 40.2153
tmin = 551664001, tmax = 551923201
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='100341', job_status='RUN', time_executed='2021-09-08 19:53:55.531338', time_epoch_executed='1631156035.53' WHERE source_name='4FGL J1359.7+4012' and cadence='daily' and bin_id='1205'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/100341

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/100341/ft1_4FGL_J1359.7+4012_daily_bin1205.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/100341/ft2_4FGL_J1359.7+4012_daily_bin1205.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/100341/ft1_4FGL_J1359.7+4012_daily_bin1205.fits outfile=/scratch/kocevski/100341/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin1205.fits ra=209.928 dec=40.2153 rad=12.0 tmin=551664001.0 tmax=551923201.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.79
user 3.57
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/100341/ft2_4FGL_J1359.7+4012_daily_bin1205.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/100341/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin1205.fits evtable="EVENTS" outfile="/scratch/kocevski/100341/ft1_filtered_4FGL_J1359.7+4012_daily_bin1205.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/100341/ft1_filtered_4FGL_J1359.7+4012_daily_bin1205.fits" evtable="EVENTS" scfile=/scratch/kocevski/100341/ft2_4FGL_J1359.7+4012_daily_bin1205.fits sctable="SC_DATA" outfile=/scratch/kocevski/100341/ltcube_551664001_551923201_4FGL_J1359.7+4012_daily_bin1205.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/100341/ft2_4FGL_J1359.7+4012_daily_bin1205.fits
.....................!
real 11.56
user 11.18
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/100341/ft1_filtered_4FGL_J1359.7+4012_daily_bin1205.fits evtable="EVENTS" scfile=/scratch/kocevski/100341/ft2_4FGL_J1359.7+4012_daily_bin1205.fits sctable="SC_DATA" expcube=/scratch/kocevski/100341/ltcube_551664001_551923201_4FGL_J1359.7+4012_daily_bin1205.fits outfile=/scratch/kocevski/100341/expmap_551664001_551923201_4FGL_J1359.7+4012_daily_bin1205.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/100341/ltcube_551664001_551923201_4FGL_J1359.7+4012_daily_bin1205.fits
.....................!
real 192.87
user 186.84
sys 5.69

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/100341/ft1_filtered_4FGL_J1359.7+4012_daily_bin1205.fits scfile=/scratch/kocevski/100341/ft2_4FGL_J1359.7+4012_daily_bin1205.fits outfile=/scratch/kocevski/100341/cmap_551664001_551923201_4FGL_J1359.7+4012_daily_bin1205.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/100341/ft1_filtered_4FGL_J1359.7+4012_daily_bin1205.fits scfile=/scratch/kocevski/100341/ft2_4FGL_J1359.7+4012_daily_bin1205.fits outfile=/scratch/kocevski/100341/cmap_HighResolution_551664001_551923201_4FGL_J1359.7+4012_daily_bin1205.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/100341/ft1_filtered_4FGL_J1359.7+4012_daily_bin1205.fits evtable="EVENTS" scfile=/scratch/kocevski/100341/ft2_4FGL_J1359.7+4012_daily_bin1205.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/100341/Model_4FGL_J1359.7+4012_daily_bin1205.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/100341/ft1_filtered_4FGL_J1359.7+4012_daily_bin1205.fits..!
real 13.60
user 12.23
sys 1.25

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

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 27.9418815217

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 27.6778448641

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.3085       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.1112       1.0000         .10000E-03   10000.    
     3 'norm      '    1.9176       1.0000         .10000E-03   10000.    
     4 'norm      '    8.1786       1.0000         .10000E-03   10000.    
     5 'norm      '    4.4517       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.3070       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.3953       1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.4615       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.8511       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.0629       1.0000         .10000E-03   10000.    
    11 'norm      '    2.5428       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.3556       1.0000         .10000E-03   10000.    
    13 'norm      '    6.7947       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .76803E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    3.4577       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .22006E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.5551       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.3385       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.9961       1.0000         .10000E-03   10000.    
    20 'norm      '    .11303       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.9798       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .67574       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .16812E-01   1.0000         .10000E-03   10000.    
    24 'norm      '    1.1040       1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.2028       1.0000         .10000E-03   10000.    
    26 'norm      '    .10112E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    8.3540       1.0000         .10000E-03   10000.    
    28 'norm      '    .10791E-01   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .28631       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .40342E-01   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .10003E-01   1.0000         .10000E-01   10.000    
    32 'Prefactor '    2.7811       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   27.66254     FROM MIGRAD    STATUS=CONVERGED    193 CALLS      302 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3085        1.0069         .0000         .0000    
   2  Prefactor     2.1112        1.0312         .0000         .0000    
   3  norm          1.9176        1.0388         .0000         .0000    
   4  norm          8.1786        1.0019         .0000         .0000    
   5  norm          4.4517        1.0064         .0000         .0000    
   6  Prefactor     1.3070        1.1030         .0000         .0000    
   7  Prefactor     .10003E-03    .21117       -.14409E-02** at limit **
   8  Prefactor     9.4615        1.0014         .0000         .0000    
   9  Prefactor     5.8511        1.0037         .0000         .0000    
  10  Prefactor     8.0629        1.0019         .0000         .0000    
  11  norm          2.5428        1.0208         .0000         .0000    
  12  Prefactor     8.3556        1.0018         .0000         .0000    
  13  norm          6.7947        1.0027         .0000         .0000    
  14  Prefactor     .10000E-03    .22090       -.72487E-05** at limit **
  15  norm          .15396E-03    .73908E-01    .59034E-03** at limit **
  16  Prefactor     .10000E-03    .20851        .74721E-03** at limit **
  17  Prefactor     5.5551        1.0041         .0000         .0000    
  18  Prefactor     1.3385        1.0961         .0000         .0000    
  19  Prefactor     2.9961        1.0146         .0000         .0000    
  20  norm          .10000E-03    .22911       -.14055E-04** at limit **
  21  Prefactor     .10001E-03    .13559       -.11031E-03** at limit **
  22  Prefactor     .10008E-03    .35811        .47736E-03** at limit **
  23  Prefactor     .10000E-03    .20733       -.30715E-05** at limit **
  24  norm          .10000E-03    .31822       -.19519E-05** at limit **
  25  Prefactor     .11153E-03    .48529E-01    .84680E-03** at limit **
  26  norm          .10000E-03    .20571       -.81353E-05** at limit **
  27  Prefactor     .10024E-03    .30059E-01   -.80374E-03** at limit **
  28  norm          .10000E-03    .20597       -.12436E-04** at limit **
  29  Prefactor     .10015E-03    .26857        .38478E-04** at limit **
  30  Prefactor     .10000E-03    .21265       -.57480E-05** at limit **
  31  Normalizat    .10000E-01    .25628       -.47448E-04** at limit **
  32  Prefactor     2.7777        1.0062        .72293E-04   -.19302E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.30848
  Prefactor  = 2.11118
  norm       = 1.91757
  norm       = 8.1786
  norm       = 4.45174
  Prefactor  = 1.30702
  Prefactor  = 0.000100034
  Prefactor  = 9.46154
  Prefactor  = 5.85114
  Prefactor  = 8.06286
  norm       = 2.54278
  Prefactor  = 8.35559
  norm       = 6.79466
  Prefactor  = 0.0001
  norm       = 0.000153956
  Prefactor  = 0.0001
  Prefactor  = 5.55506
  Prefactor  = 1.33853
  Prefactor  = 2.99605
  norm       = 0.000100001
  Prefactor  = 0.000100007
  Prefactor  = 0.000100078
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.00011153
  norm       = 0.0001
  Prefactor  = 0.000100236
  norm       = 0.000100001
  Prefactor  = 0.000100146
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 2.7777
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   27.66254     FROM HESSE     STATUS=FAILED        11 CALLS      313 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     538.73        534.36         .0000       -1.5293    
   2  Prefactor     2.1112        1.0312         .0000       -1.5417    
   3  norm          1.9176        1.0388         .0000       -1.5431    
   4  norm          8.1786        1.0019         .0000       -1.5136    
   5  norm          4.4517        1.0064         .0000       -1.5286    
   6  Prefactor     1.3070        1.1030         .0000       -1.5479    
   7  Prefactor     .10003E-03    .21117       -.14409E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.4615        1.0014         .0000       -1.5093    
   9  Prefactor     5.8511        1.0037         .0000       -1.5224    
  10  Prefactor     8.0629        1.0019         .0000       -1.5140    
  11  norm          2.5428        1.0208         .0000       -1.5389    
  12  Prefactor     8.3556        1.0018         .0000       -1.5130    
  13  norm          6.7947        1.0027         .0000       -1.5187    
  14  Prefactor     .10000E-03    .22090       -.72487E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .15396E-03    .73908E-01    .59034E-03   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .20851        .74721E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.5551        1.0041         .0000       -1.5237    
  18  Prefactor     1.3385        1.0961         .0000       -1.5477    
  19  Prefactor     2.9961        1.0146         .0000       -1.5362    
  20  norm          .10000E-03    .22911       -.14055E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10001E-03    .13559       -.11031E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10008E-03    .35811        .47736E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    .20733       -.30715E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .31822       -.19519E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .11153E-03    .48529E-01    .84680E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    .20571       -.81353E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10024E-03    .30059E-01   -.80374E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    .20597       -.12436E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10015E-03    .26857        .38478E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    .21265       -.57480E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .10000E-01    .25628       -.47448E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     2.7777        1.0062        .72293E-04   -.46057    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.05975e-10
Minuit parameter uncertainties:
  1  1.0069
  2  1.03123
  3  1.03884
  4  1.00188
  5  1.00645
  6  1.10301
  7  0.000168292
  8  1.0014
  9  1.0037
  10  1.00193
  11  1.02077
  12  1.0018
  13  1.00273
  14  1.56397e-05
  15  0.00399391
  16  6.5043e-06
  17  1.00411
  18  1.0961
  19  1.01465
  20  3.67015e-05
  21  6.2998e-05
  22  0.000333889
  23  7.66009e-06
  24  1.32712e-05
  25  0.00149605
  26  2.01334e-05
  27  0.00016853
  28  3.1043e-05
  29  0.000396216
  30  1.44677e-05
  31  4.47739e-06
  32  1.01486
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 27.6625359824

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  1.540e-04  3.994e-03  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.778e+00  1.015e+00  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-02  4.477e-06  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/100341/likelihoodResults_551664001_551923201_4FGL_J1359.7+4012_daily_bin1205.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): 102
logL (Free Index) = 27.6625388682
delta logL = -2.88580656971e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 27.6625359944
delta logL = -1.19971659274e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.7686       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    2.7777       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=   27.66254     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      266 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .12365E-03    9203.7        .15264E-01** at limit **
   2  alpha         2.8897        3.4541        .50000        .43232E-07
   3  Normalizat    .10000E-01    .83037E-01    .66167E-02** at limit **
   4  Prefactor     2.7777        .28638        .23782E-03   -.25195E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000123648
  alpha      = 2.88967
  Normalizat = 0.01
  Prefactor  = 2.7777
 **********
 **   18 **HESSE 
 **********

 FCN=   27.66254     FROM HESSE     STATUS=NOT POSDEF    23 CALLS      289 TOTAL
                     EDM=   .44E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .12365E-03    7223.8        .19465E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.8897        2.9473        .20000E-01    .15651    
   3  Normalizat    .10000E-01    1.1105        .13233E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.7777        1.0569        .47564E-04   -.46057    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.38223e-08
Minuit parameter uncertainties:
  1  3.76553
  2  64840.3
  3  3.73565e-05
  4  1.06692
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/100341': 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): 102
logL (Free Index) = 27.6625359793
delta logL = 3.15987236377e-09

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  1.236e-04  3.766e+00  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  2.890e+00  6.484e+04  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.778e+00  1.067e+00  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-02  3.736e-05  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/100341/cmap_HighResolution_551664001_551923201_4FGL_J1359.7+4012_daily_bin1205.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.26e-03', job_status='DONE', photon_flux_upper_limit='1.43e-05', time_completed='2021-09-08 19:59:30.711361', job_id='100341', GAL2='2.78', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631156370.71', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='2.78', dlogl='3.16e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1205' AND source_name='4FGL J1359.7+4012' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 19:59:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0125>
Subject: Job 100341: <4FGL_J1359.7+4012_daily_bin1205> in cluster <slac> Done

Job <4FGL_J1359.7+4012_daily_bin1205> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  8 19:50:37 2021
Job was executed on host(s) <bullet0125>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 19:50:39 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:39 2021
Terminated at Wed Sep  8 19:59:31 2021
Results reported at Wed Sep  8 19:59:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.7+4012_daily_bin1205 209.928 40.2153 551664001 551923201 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 :                                   326.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   531 sec.
    Turnaround time :                            534 sec.

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

