/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 19 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 = 7396
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1359.7+4012_daily_bin385
RA = 209.928, Dec = 40.2153
tmin = 339120001, tmax = 339379201
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='95968', job_status='RUN', time_executed='2021-09-08 19:36:53.902109', time_epoch_executed='1631155013.9' WHERE source_name='4FGL J1359.7+4012' and cadence='daily' and bin_id='385'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/95968

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

Retrieving the FT1 file...

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

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

Retrieving 52 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/95968/ft1_4FGL_J1359.7+4012_daily_bin385.fits


Retrieving the FT1 file...

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

Retrieving 52 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/95968/ft2_4FGL_J1359.7+4012_daily_bin385.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/95968/ft1_4FGL_J1359.7+4012_daily_bin385.fits outfile=/scratch/kocevski/95968/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin385.fits ra=209.928 dec=40.2153 rad=12.0 tmin=339120001.0 tmax=339379201.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 6.27
user 6.01
sys 0.24

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/95968/ft1_filtered_4FGL_J1359.7+4012_daily_bin385.fits" evtable="EVENTS" scfile=/scratch/kocevski/95968/ft2_4FGL_J1359.7+4012_daily_bin385.fits sctable="SC_DATA" outfile=/scratch/kocevski/95968/ltcube_339120001_339379201_4FGL_J1359.7+4012_daily_bin385.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/95968/ft2_4FGL_J1359.7+4012_daily_bin385.fits
.....................!
real 11.20
user 10.86
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/95968/ft1_filtered_4FGL_J1359.7+4012_daily_bin385.fits evtable="EVENTS" scfile=/scratch/kocevski/95968/ft2_4FGL_J1359.7+4012_daily_bin385.fits sctable="SC_DATA" expcube=/scratch/kocevski/95968/ltcube_339120001_339379201_4FGL_J1359.7+4012_daily_bin385.fits outfile=/scratch/kocevski/95968/expmap_339120001_339379201_4FGL_J1359.7+4012_daily_bin385.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/95968/ltcube_339120001_339379201_4FGL_J1359.7+4012_daily_bin385.fits
.....................!
real 190.19
user 185.16
sys 4.64

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/95968/ft1_filtered_4FGL_J1359.7+4012_daily_bin385.fits scfile=/scratch/kocevski/95968/ft2_4FGL_J1359.7+4012_daily_bin385.fits outfile=/scratch/kocevski/95968/cmap_339120001_339379201_4FGL_J1359.7+4012_daily_bin385.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/95968/ft1_filtered_4FGL_J1359.7+4012_daily_bin385.fits scfile=/scratch/kocevski/95968/ft2_4FGL_J1359.7+4012_daily_bin385.fits outfile=/scratch/kocevski/95968/cmap_HighResolution_339120001_339379201_4FGL_J1359.7+4012_daily_bin385.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/95968/ft1_filtered_4FGL_J1359.7+4012_daily_bin385.fits evtable="EVENTS" scfile=/scratch/kocevski/95968/ft2_4FGL_J1359.7+4012_daily_bin385.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/95968/Model_4FGL_J1359.7+4012_daily_bin385.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/95968/ft1_filtered_4FGL_J1359.7+4012_daily_bin385.fits.....................!
real 43.10
user 41.76
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    8.3356       1.0000         .10000E-03   10000.    
     5 'norm      '    .10162E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.1813       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11229E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    27.229       1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.551       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11115E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.3731       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.8769       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.5591       1.0000         .10000E-03   10000.    
    15 'norm      '    33.092       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    59.037       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    11.923       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.0674       1.0000         .10000E-03   10000.    
    24 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    27.626       1.0000         .10000E-03   10000.    
    26 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    4.8819       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0130       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .88216       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=   5015.988     FROM MIGRAD    STATUS=CONVERGED    828 CALLS     4311 TOTAL
                     EDM=   .50E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    60.522       -.11347E-05** at limit **
   2  Prefactor     .10000E-03    29.198       -.34502E-06** at limit **
   3  norm          .10000E-03    1.7682       -.54607E-07** at limit **
   4  norm          8.3356        10.021        .26457E-06    .84460E-04
   5  norm          .10000E-03    3.0342        .27373E-06** at limit **
   6  Prefactor     3.1825        3.3505        .22120E-06   -.41610E-03
   7  Prefactor     .10000E-03    34.057       -.20682E-05** at limit **
   8  Prefactor     27.231        35.636       -.26895E-06    .17895E-03
   9  Prefactor     24.524        44.650        .18370E-05   -.54590E-04
  10  Prefactor     .10000E-03    36.865        .72730E-07** at limit **
  11  norm          1.3752        5.2615        .98913E-05   -.10820E-03
  12  Prefactor     .10000E-03    77.648        .17783E-05** at limit **
  13  norm          2.8769        1.8488        .11060E-06   -.10248E-04
  14  Prefactor     1.5585        4.5479        .10896E-05    .19385E-04
  15  norm          33.091        22.138        .23237E-06   -.18848E-03
  16  Prefactor     .10000E-03    9.2559        .87037E-07** at limit **
  17  Prefactor     59.032        49.667        .31193E-06   -.44196E-04
  18  Prefactor     .10000E-03    1.6612       -.86073E-07** at limit **
  19  Prefactor     .10000E-03    11.150        .26591E-06** at limit **
  20  norm          11.923        5.8127        .13222E-06   -.12067E-03
  21  Prefactor     .10000E-03    5.3550       -.42860E-07** at limit **
  22  Prefactor     .10000E-03    4.8825        .35104E-07** at limit **
  23  Prefactor     8.0673        5.0761        .15735E-06   -.19032E-03
  24  norm          .10000E-03    7.4201        .12783E-06** at limit **
  25  Prefactor     27.624        31.848        .98976E-06   -.31010E-04
  26  norm          .10000E-03    2.0774        .95201E-07** at limit **
  27  Prefactor     .10000E-03    13.955       -.25763E-06** at limit **
  28  norm          4.8818        5.0501        .11224E-07    .24256E-05
  29  Prefactor     .10000E-03    5.4404        .19475E-06** at limit **
  30  Prefactor     .10000E-03    7.5326        .25349E-06** at limit **
  31  Normalizat    1.0130        .18918       -.17670E-05   -.39060E-03
  32  Prefactor     .88220        .21244       -.11788E-05   -.40464E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  norm       = 0.0001
  norm       = 8.33559
  norm       = 0.0001
  Prefactor  = 3.18254
  Prefactor  = 0.000100005
  Prefactor  = 27.2312
  Prefactor  = 24.5244
  Prefactor  = 0.000100001
  norm       = 1.3752
  Prefactor  = 0.000100001
  norm       = 2.87695
  Prefactor  = 1.55854
  norm       = 33.0913
  Prefactor  = 0.0001
  Prefactor  = 59.0317
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.9231
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.06726
  norm       = 0.0001
  Prefactor  = 27.6237
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.88179
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.01299
  Prefactor  = 0.882196
 **********
 **   18 **HESSE 
 **********

 FCN=   5015.988     FROM HESSE     STATUS=OK           643 CALLS     4954 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    60.567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    29.973        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.7706        .91968E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          8.3356        10.023        .13885E-03   -1.5130    
   5  norm          .10000E-03    3.1223        .24085E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.1825        3.3468        .63518E-03   -1.5351    
   7  Prefactor     .10000E-03    34.521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     27.231        35.800        .76773E-04   -1.4664    
   9  Prefactor     24.524        44.665        .80845E-04   -1.4717    
  10  Prefactor     .10000E-03    36.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.3752        5.2686        .15122E-02   -1.5473    
  12  Prefactor     .10000E-03    77.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.8769        1.8447        .72732E-04   -1.5369    
  14  Prefactor     1.5585        4.5342        .24448E-03   -1.5458    
  15  norm          33.091        22.197        .69657E-04   -1.4557    
  16  Prefactor     .10000E-03    9.2670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     59.032        49.753        .52215E-04   -1.4170    
  18  Prefactor     .10000E-03    1.6642        .89127E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          11.923        5.8100        .11337E-03   -1.5017    
  21  Prefactor     .10000E-03    5.3690        .16004E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.8864        .15283E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     8.0673        5.0760        .11964E-03   -1.5140    
  24  norm          .10000E-03    7.4346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     27.624        31.990        .76221E-04   -1.4656    
  26  norm          .10000E-03    2.0829        .99694E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    13.960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          4.8818        5.0547        .15811E-03   -1.5266    
  29  Prefactor     .10000E-03    5.4431        .16136E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    7.6410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.0130        .22566        .22903E-03   -.92596    
  32  Prefactor     .88220        .25182        .28804E-03   -.96766    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.81645e-10
Minuit parameter uncertainties:
  1  0.000545695
  2  0.000600052
  3  5.07965e-06
  4  10.0247
  5  3.45197e-05
  6  3.34704
  7  0.000825508
  8  35.8285
  9  44.7263
  10  0.000401494
  11  5.27042
  12  0.000498438
  13  1.84475
  14  4.53516
  15  22.202
  16  2.19392e-05
  17  49.7877
  18  8.14122e-06
  19  4.0352e-06
  20  5.81032
  21  1.88984e-05
  22  6.97321e-06
  23  5.07624
  24  1.29537e-05
  25  32.0097
  26  1.0681e-05
  27  2.40696e-05
  28  5.05519
  29  5.79439e-06
  30  8.11482e-05
  31  0.225875
  32  0.252149
Done.

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

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  3.309e+01  2.220e+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:  8.822e-01  2.521e-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.013e+00  2.259e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.59
Ra Dec: 209.928 40.215
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 6.13e-08 +/- 4.11e-08
Energy Flux (Fixed Index): 1.83e-05 +/- 1.23e-05

TS (Fixed Index): 3.59
Ra Dec: 209.928 40.215
Photon Flux Upper Limit: 1.45e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.33e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/95968/likelihoodResults_339120001_339379201_4FGL_J1359.7+4012_daily_bin385.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) = 5015.62131711
delta logL = 0.367072989799

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5015.61637666
delta logL = 0.37201343683

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    29.880       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9405       1.0000          .0000       5.0000    
     3 'Normalizat'    .97407       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91304       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=   5015.616     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      254 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          29.837        419.27        .18324E-02    .14568E-04
   2  alpha         2.9382        3.1319        .37811        .25965E-04
   3  Normalizat    .97429        .99953E-01    .45841E-01    .21011E-04
   4  Prefactor     .91303        .12848        .45171E-01    .13601E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 29.837
  alpha      = 2.93819
  Normalizat = 0.974292
  Prefactor  = 0.913029
 **********
 **   18 **HESSE 
 **********

 FCN=   5015.616     FROM HESSE     STATUS=OK            33 CALLS      287 TOTAL
                     EDM=   .41E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          29.837        21.588        .73296E-04   -1.4615    
   2  alpha         2.9382        .74299        .15550E-01    .17619    
   3  Normalizat    .97429        .21890        .23295E-03   -.93897    
   4  Prefactor     .91303        .25387        .28342E-03   -.95687    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.09039e-12
Minuit parameter uncertainties:
  1  21.5932
  2  0.75476
  3  0.219104
  4  0.254202
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/95968': 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) = 5015.61636193
delta logL = 0.372028169045

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  2.984e+01  2.159e+01  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  2.938e+00  7.548e-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:  9.130e-01  2.542e-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:  9.743e-01  2.191e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.36
Ra Dec: 209.928 40.215
Photon Index (Free Index): 2.94 +/- 0.75
Photon Flux (Free Index): 9.03e-08 +/- 5.93e-08
Energy Flux (Free Index): 1.94e-05 +/- 1.16e-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/95968/cmap_HighResolution_339120001_339379201_4FGL_J1359.7+4012_daily_bin385.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.33e-05', comment='SUCCESS', photon_flux='6.13e-08', energy_flux2='1.94e-05', photon_flux_error='4.11e-08', dlogl='3.72e-01', energy_flux='1.83e-05', photon_flux2='9.03e-08', job_status='DONE', time_completed='2021-09-08 19:50:50.819519', photon_index_error2='0.75', photon_index2='2.94', ts='3.59', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='1.45e-07', energy_flux_error2='1.16e-05', EG='1.01', time_epoch_completed='1631155850.82', return_code='0', job_id='95968', GAL2='0.91', EG2='0.97', return_code2='0', energy_flux_error='1.23e-05', photon_flux_error2='5.93e-08', ts2='4.36', photon_index='2.33' WHERE bin_id='385' AND source_name='4FGL J1359.7+4012' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 19:50:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0292>
Subject: Job 95968: <4FGL_J1359.7+4012_daily_bin385> in cluster <slac> Done

Job <4FGL_J1359.7+4012_daily_bin385> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 19:36:21 2021
Job was executed on host(s) <bullet0292>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 19:36:22 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:36:22 2021
Terminated at Wed Sep  8 19:50:51 2021
Results reported at Wed Sep  8 19:50:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.7+4012_daily_bin385 209.928 40.2153 339120001 339379201 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 :                                   808.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             349.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            870 sec.

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

