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


Performing analysis on: 4FGL_J1359.7+4012_daily_bin505
RA = 209.928, Dec = 40.2153
tmin = 370224001, tmax = 370483201
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='97100', job_status='RUN', time_executed='2021-09-08 19:40:48.760147', time_epoch_executed='1631155248.76' WHERE source_name='4FGL J1359.7+4012' and cadence='daily' and bin_id='505'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/97100

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/97100/ft1_4FGL_J1359.7+4012_daily_bin505.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/97100/ft2_4FGL_J1359.7+4012_daily_bin505.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/97100/ft1_4FGL_J1359.7+4012_daily_bin505.fits outfile=/scratch/kocevski/97100/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin505.fits ra=209.928 dec=40.2153 rad=12.0 tmin=370224001.0 tmax=370483201.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 16.23
user 15.81
sys 0.38

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/97100/ft1_filtered_4FGL_J1359.7+4012_daily_bin505.fits" evtable="EVENTS" scfile=/scratch/kocevski/97100/ft2_4FGL_J1359.7+4012_daily_bin505.fits sctable="SC_DATA" outfile=/scratch/kocevski/97100/ltcube_370224001_370483201_4FGL_J1359.7+4012_daily_bin505.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/97100/ft2_4FGL_J1359.7+4012_daily_bin505.fits
.....................!
real 10.62
user 10.27
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/97100/ft1_filtered_4FGL_J1359.7+4012_daily_bin505.fits evtable="EVENTS" scfile=/scratch/kocevski/97100/ft2_4FGL_J1359.7+4012_daily_bin505.fits sctable="SC_DATA" expcube=/scratch/kocevski/97100/ltcube_370224001_370483201_4FGL_J1359.7+4012_daily_bin505.fits outfile=/scratch/kocevski/97100/expmap_370224001_370483201_4FGL_J1359.7+4012_daily_bin505.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/97100/ltcube_370224001_370483201_4FGL_J1359.7+4012_daily_bin505.fits
.....................!
real 191.53
user 186.60
sys 4.52

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/97100/ft1_filtered_4FGL_J1359.7+4012_daily_bin505.fits scfile=/scratch/kocevski/97100/ft2_4FGL_J1359.7+4012_daily_bin505.fits outfile=/scratch/kocevski/97100/cmap_370224001_370483201_4FGL_J1359.7+4012_daily_bin505.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=209.928 yref=40.2153 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/97100/ft1_filtered_4FGL_J1359.7+4012_daily_bin505.fits scfile=/scratch/kocevski/97100/ft2_4FGL_J1359.7+4012_daily_bin505.fits outfile=/scratch/kocevski/97100/cmap_HighResolution_370224001_370483201_4FGL_J1359.7+4012_daily_bin505.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/97100/ft1_filtered_4FGL_J1359.7+4012_daily_bin505.fits evtable="EVENTS" scfile=/scratch/kocevski/97100/ft2_4FGL_J1359.7+4012_daily_bin505.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/97100/Model_4FGL_J1359.7+4012_daily_bin505.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/97100/ft1_filtered_4FGL_J1359.7+4012_daily_bin505.fits....................!
real 37.05
user 35.77
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4258       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    23.062       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    28.579       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.3591       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.273       1.0000         .10000E-03   10000.    
    13 'norm      '    11.008       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.0688       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.339       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.2544       1.0000         .10000E-03   10000.    
    20 'norm      '    7.1330       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10364E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    42.254       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.6597       1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.1714       1.0000         .10000E-03   10000.    
    26 'norm      '    .75073       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0848       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .76404       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=   3985.724     FROM MIGRAD    STATUS=CONVERGED    831 CALLS     4402 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4248        173.90        .10507E-05   -.65037E-05
   2  Prefactor     .10000E-03    5.6538        .50166E-06** at limit **
   3  norm          .10000E-03    1.7947       -.29774E-07** at limit **
   4  norm          23.062        22.172        .19351E-06   -.11157E-04
   5  norm          .10000E-03    1.3705        .12730E-07** at limit **
   6  Prefactor     .10000E-03    2.0532       -.69666E-07** at limit **
   7  Prefactor     .10000E-03    7.3356        .58048E-06** at limit **
   8  Prefactor     .10001E-03    66.238        .31782E-05** at limit **
   9  Prefactor     28.574        82.621        .25781E-06   -.27693E-04
  10  Prefactor     .10000E-03    42.143        .19015E-05** at limit **
  11  norm          1.3591        3.8119        .63528E-06   -.80392E-04
  12  Prefactor     10.302        171.76        .12982E-04    .63361E-04
  13  norm          11.008        2.5810        .57668E-07   -.16328E-03
  14  Prefactor     7.0683        6.6495        .24480E-06   -.41298E-04
  15  norm          .10000E-03    6.1596       -.34306E-06** at limit **
  16  Prefactor     .10000E-03    8.1290       -.40831E-08** at limit **
  17  Prefactor     17.341        50.852        .12179E-05   -.59484E-05
  18  Prefactor     .10000E-03    3.1669        .28707E-07** at limit **
  19  Prefactor     4.2606        34.605        .13451E-05   -.13092E-05
  20  norm          7.1327        5.1680       -.19111E-07    .16269E-04
  21  Prefactor     .10001E-03    79.376       -.36639E-05** at limit **
  22  Prefactor     42.253        23.742       -.95086E-06    .19134E-03
  23  Prefactor     2.6597        4.7209        .29961E-06   -.58208E-04
  24  norm          .10000E-03    11.167       -.71429E-06** at limit **
  25  Prefactor     3.1683        22.470        .11488E-04   -.19347E-03
  26  norm          .74974        8.5437        .83260E-06   -.11505E-03
  27  Prefactor     .10000E-03    19.929       -.30538E-05** at limit **
  28  norm          .10000E-03    5.0828       -.11004E-06** at limit **
  29  Prefactor     .10000E-03    16.127        .25723E-05** at limit **
  30  Prefactor     .10000E-03    6.2809       -.42426E-06** at limit **
  31  Normalizat    1.0846        .23260       -.26300E-05   -.59856E-05
  32  Prefactor     .76428        .25337        .13551E-05   -.11823E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.42477
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 23.0619
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 28.5736
  Prefactor  = 0.000100002
  norm       = 1.35912
  Prefactor  = 10.3023
  norm       = 11.0079
  Prefactor  = 7.06835
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.3408
  Prefactor  = 0.0001
  Prefactor  = 4.26059
  norm       = 7.13272
  Prefactor  = 0.000100005
  Prefactor  = 42.253
  Prefactor  = 2.65972
  norm       = 0.0001
  Prefactor  = 3.16834
  norm       = 0.749739
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Normalizat = 1.08461
  Prefactor  = 0.764275
 **********
 **   18 **HESSE 
 **********

 FCN=   3985.724     FROM HESSE     STATUS=OK           651 CALLS     5053 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4248        172.90        .21855E-03   -1.5338    
   2  Prefactor     .10000E-03    5.6734        .14684E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.7958        .82595E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          23.062        22.114        .83409E-04   -1.4747    
   5  norm          .10000E-03    1.3717        .72179E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.0659        .88129E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.3706        .16730E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    67.647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     28.574        82.821        .74942E-04   -1.4638    
  10  Prefactor     .10000E-03    42.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.3591        3.7662        .19888E-03   -1.5475    
  12  Prefactor     10.302        179.91        .12501E-03   -1.5066    
  13  norm          11.008        2.5848        .46654E-04   -1.5044    
  14  Prefactor     7.0683        6.6557        .15080E-03   -1.5176    
  15  norm          .10000E-03    6.1772        .15318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.1321        .17580E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     17.341        50.857        .96185E-04   -1.4875    
  18  Prefactor     .10000E-03    3.1782        .10961E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.2606        35.090        .19535E-03   -1.5295    
  20  norm          7.1327        5.1657        .11785E-03   -1.5174    
  21  Prefactor     .10001E-03    81.155        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     42.253        23.547        .61670E-04   -1.4407    
  23  Prefactor     2.6597        4.7028        .17535E-03   -1.5382    
  24  norm          .10000E-03    11.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     3.1683        23.743        .11379E-02   -1.5352    
  26  norm          .74974        17.894        .34691E-02   -1.5535    
  27  Prefactor     .10000E-03    20.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    5.0869        .13902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    16.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    6.2997        .15463E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.0846        .28118        .21995E-03   -.90247    
  32  Prefactor     .76428        .30544        .30607E-03   -1.0106    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.25523e-08
Minuit parameter uncertainties:
  1  48.8164
  2  5.45766e-05
  3  3.86498e-07
  4  22.1219
  5  1.10557e-06
  6  4.29135e-06
  7  7.9693e-05
  8  0.0011874
  9  83.1568
  10  0.000568994
  11  3.76685
  12  86.4104
  13  2.58481
  14  6.65644
  15  4.69342e-05
  16  9.54548e-08
  17  50.9845
  18  7.50852e-07
  19  24.4738
  20  5.16601
  21  0.00128782
  22  23.552
  23  4.70341
  24  0.000100066
  25  17.3558
  26  7.32753
  27  0.000600274
  28  9.24711e-06
  29  0.000470753
  30  4.15713e-05
  31  0.281573
  32  0.30612
Done.

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

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  1.000e-04  4.693e-05  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:  7.643e-01  3.061e-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.085e+00  2.816e-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: 5.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.71e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/97100/likelihoodResults_370224001_370483201_4FGL_J1359.7+4012_daily_bin505.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) = 3985.72508998
delta logL = -0.000764454237924

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3985.72432553
delta logL = -1.39743860927e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3283       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0846       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76429       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=   3985.724     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      229 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10003E-03    15.253        .15319E-02** at limit **
   2  alpha         2.3553        2.6228        .16510       -.40376E-06
   3  Normalizat    1.0846        .24822        .21996E-03    .30236E-05
   4  Prefactor     .76428        .29572        .30606E-03    .22101E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100026
  alpha      = 2.35527
  Normalizat = 1.08461
  Prefactor  = 0.764279
 **********
 **   18 **HESSE 
 **********

 FCN=   3985.724     FROM HESSE     STATUS=OK            23 CALLS      252 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10003E-03    6.1845        .30637E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3553        2.8314        .66040E-02   -.57926E-01
   3  Normalizat    1.0846        .24854        .87983E-05   -.90248    
   4  Prefactor     .76428        .29609        .12243E-04   -1.0106    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.05768e-09
Minuit parameter uncertainties:
  1  0.000803823
  2  422.738
  3  0.248804
  4  0.296709
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/97100': 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) = 3985.72432552
delta logL = 4.68753569294e-09

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  1.000e-04  8.038e-04  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  2.355e+00  4.227e+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:  7.643e-01  2.967e-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.085e+00  2.488e-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/97100/cmap_HighResolution_370224001_370483201_4FGL_J1359.7+4012_daily_bin505.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.71e-05', job_status='DONE', photon_flux_upper_limit='5.72e-08', time_completed='2021-09-08 19:53:51.243436', job_id='97100', GAL2='0.76', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1631156031.24', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='4.69e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='505' AND source_name='4FGL J1359.7+4012' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 19:53:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 97100: <4FGL_J1359.7+4012_daily_bin505> in cluster <slac> Done

Job <4FGL_J1359.7+4012_daily_bin505> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  8 19:40:30 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 19:40:31 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:40:31 2021
Terminated at Wed Sep  8 19:53:51 2021
Results reported at Wed Sep  8 19:53:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.7+4012_daily_bin505 209.928 40.2153 370224001 370483201 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 :                                   775.37 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             274.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   800 sec.
    Turnaround time :                            801 sec.

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

