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


Performing analysis on: 4FGL_J1359.7+4012_daily_bin55
RA = 209.928, Dec = 40.2153
tmin = 253584001, tmax = 253843201
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='95425', job_status='RUN', time_executed='2021-09-08 19:38:10.145167', time_epoch_executed='1631155090.15' WHERE source_name='4FGL J1359.7+4012' and cadence='daily' and bin_id='55'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/95425

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/95425/ft1_4FGL_J1359.7+4012_daily_bin55.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/95425/ft2_4FGL_J1359.7+4012_daily_bin55.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/95425/ft1_4FGL_J1359.7+4012_daily_bin55.fits outfile=/scratch/kocevski/95425/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin55.fits ra=209.928 dec=40.2153 rad=12.0 tmin=253584001.0 tmax=253843201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 1.42
user 1.25
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/95425/ft1_filtered_4FGL_J1359.7+4012_daily_bin55.fits" evtable="EVENTS" scfile=/scratch/kocevski/95425/ft2_4FGL_J1359.7+4012_daily_bin55.fits sctable="SC_DATA" outfile=/scratch/kocevski/95425/ltcube_253584001_253843201_4FGL_J1359.7+4012_daily_bin55.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/95425/ft2_4FGL_J1359.7+4012_daily_bin55.fits
.....................!
real 12.71
user 12.35
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/95425/ft1_filtered_4FGL_J1359.7+4012_daily_bin55.fits evtable="EVENTS" scfile=/scratch/kocevski/95425/ft2_4FGL_J1359.7+4012_daily_bin55.fits sctable="SC_DATA" expcube=/scratch/kocevski/95425/ltcube_253584001_253843201_4FGL_J1359.7+4012_daily_bin55.fits outfile=/scratch/kocevski/95425/expmap_253584001_253843201_4FGL_J1359.7+4012_daily_bin55.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/95425/ltcube_253584001_253843201_4FGL_J1359.7+4012_daily_bin55.fits
.....................!
real 192.57
user 187.70
sys 4.55

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

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.13

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

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/95425/ft1_filtered_4FGL_J1359.7+4012_daily_bin55.fits evtable="EVENTS" scfile=/scratch/kocevski/95425/ft2_4FGL_J1359.7+4012_daily_bin55.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/95425/Model_4FGL_J1359.7+4012_daily_bin55.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/95425/ft1_filtered_4FGL_J1359.7+4012_daily_bin55.fits.....................!
real 35.01
user 33.77
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .11766E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.9300       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .75887E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.4717       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    8.4079       1.0000         .10000E-03   10000.    
    12 'Prefactor '    101.66       1.0000         .10000E-03   10000.    
    13 'norm      '    3.8706       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.7432       1.0000         .10000E-03   10000.    
    15 'norm      '    29.673       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    110.24       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .26546       1.0000         .10000E-03   10000.    
    19 'Prefactor '    37.969       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.9166       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    52.584       1.0000         .10000E-03   10000.    
    26 'norm      '    10.780       1.0000         .10000E-03   10000.    
    27 'Prefactor '    9.9798       1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    13.749       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .86312       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .58060       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=   3942.285     FROM MIGRAD    STATUS=CONVERGED    818 CALLS     4506 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.688       -.19400E-05** at limit **
   2  Prefactor     .10000E-03    9.7406       -.15592E-05** at limit **
   3  norm          .10000E-03    4.4689       -.70268E-06** at limit **
   4  norm          .10000E-03    6.2374       -.42386E-06** at limit **
   5  norm          1.9298        3.1028       -.40190E-07    .80808E-04
   6  Prefactor     .10000E-03    2.7751        .23506E-05** at limit **
   7  Prefactor     5.5112        14.638        .37841E-06    .18559E-03
   8  Prefactor     .10000E-03    13.255        .16892E-05** at limit **
   9  Prefactor     .10000E-03    23.899       -.18119E-05** at limit **
  10  Prefactor     .10000E-03    11.573        .49652E-06** at limit **
  11  norm          8.4082        7.0475       -.41942E-06    .75311E-03
  12  Prefactor     101.66        85.591        .60280E-06    .79824E-04
  13  norm          3.8706        1.7670       -.38368E-07    .21742E-03
  14  Prefactor     8.7433        4.8037       -.16481E-07    .24145E-03
  15  norm          29.669        18.739        .50881E-07    .82484E-04
  16  Prefactor     .10000E-03    6.9779        .59155E-06** at limit **
  17  Prefactor     110.30        75.542        .18267E-05   -.31222E-03
  18  Prefactor     .26944        40.145       -.23496E-04    .16533E-03
  19  Prefactor     37.973        30.358        .21100E-05   -.17623E-04
  20  norm          .10000E-03    1.4672       -.14277E-06** at limit **
  21  Prefactor     3.9174        11.649       -.10459E-05   -.23359E-03
  22  Prefactor     .10000E-03    17.764       -.33397E-06** at limit **
  23  Prefactor     .10000E-03    2.8155       -.62286E-06** at limit **
  24  norm          .10000E-03    29.267        .16428E-05** at limit **
  25  Prefactor     52.584        32.712       -.10243E-06    .42951E-04
  26  norm          10.780        7.1844       -.13898E-06    .10193E-04
  27  Prefactor     9.9735        68.717        .16614E-05    .28632E-04
  28  norm          .10000E-03    3.0437       -.24137E-07** at limit **
  29  Prefactor     .10000E-03    7.4226       -.12630E-06** at limit **
  30  Prefactor     13.749        10.177       -.13914E-06    .24731E-04
  31  Normalizat    .86297        .19032       -.32063E-05    .11731E-03
  32  Prefactor     .58086        .20685        .72341E-05    .50914E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 0.000100001
  norm       = 0.0001
  norm       = 1.9298
  Prefactor  = 0.0001
  Prefactor  = 5.51115
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 8.40816
  Prefactor  = 101.662
  norm       = 3.87062
  Prefactor  = 8.74333
  norm       = 29.6694
  Prefactor  = 0.0001
  Prefactor  = 110.3
  Prefactor  = 0.269442
  Prefactor  = 37.9734
  norm       = 0.0001
  Prefactor  = 3.91739
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 52.5844
  norm       = 10.7795
  Prefactor  = 9.97349
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.7486
  Normalizat = 0.862974
  Prefactor  = 0.580859
 **********
 **   18 **HESSE 
 **********

 FCN=   3942.285     FROM HESSE     STATUS=OK           657 CALLS     5163 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    9.8079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    10.942        .25491E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    6.2498        .15322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.9298        3.0781        .13653E-03   -1.5430    
   6  Prefactor     .10000E-03    12.897        .16866E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.5112        13.389        .17177E-03   -1.5238    
   8  Prefactor     .10000E-03    13.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    23.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          8.4082        7.0920        .69126E-03   -1.5128    
  12  Prefactor     101.66        86.456        .39876E-04   -1.3688    
  13  norm          3.8706        1.7662        .54142E-04   -1.5314    
  14  Prefactor     8.7433        4.8123        .97355E-04   -1.5116    
  15  norm          29.669        18.737        .73551E-04   -1.4618    
  16  Prefactor     .10000E-03    6.9799        .16198E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     110.30        79.503        .19155E-03   -1.3604    
  18  Prefactor     .26944        46.362        .25889E-02   -1.5604    
  19  Prefactor     37.973        30.328        .65045E-04   -1.4475    
  20  norm          .10000E-03    1.4771        .74257E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.9174        11.637        .20386E-03   -1.5312    
  22  Prefactor     .10000E-03    17.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.9139        .20607E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    29.744        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     52.584        32.733        .55309E-04   -1.4256    
  26  norm          10.780        7.1804        .12203E-03   -1.5051    
  27  Prefactor     9.9735        68.528        .12684E-03   -1.5076    
  28  norm          .10000E-03    3.0447        .10698E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    7.4371        .16707E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     13.749        10.175        .10802E-03   -1.4966    
  31  Normalizat    .86297        .22411        .20686E-03   -.97774    
  32  Prefactor     .58086        .24386        .29233E-03   -1.0840    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.03935e-09
Minuit parameter uncertainties:
  1  0.00024424
  2  0.000153889
  3  0.000234518
  4  4.34322e-05
  5  3.07838
  6  7.94496e-06
  7  13.3958
  8  0.000129198
  9  0.000228609
  10  2.90491e-05
  11  7.09267
  12  86.5634
  13  1.76618
  14  4.81247
  15  18.7404
  16  1.93265e-05
  17  79.5797
  18  7.07302
  19  30.3399
  20  1.52183e-05
  21  11.6441
  22  0.000105487
  23  9.82252e-05
  24  7.40421e-05
  25  32.7444
  26  7.18093
  27  52.3721
  28  3.64512e-06
  29  2.54996e-05
  30  10.1766
  31  0.224354
  32  0.244309
Done.

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

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  2.967e+01  1.874e+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:  5.809e-01  2.443e-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:  8.630e-01  2.244e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.85
Ra Dec: 209.928 40.215
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 5.49e-08 +/- 3.47e-08
Energy Flux (Fixed Index): 1.64e-05 +/- 1.03e-05

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) = 3942.28385353
delta logL = 0.00161101705453

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3942.28369251
delta logL = 0.00177203086969

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    29.405       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3735       1.0000          .0000       5.0000    
     3 'Normalizat'    .86075       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .58296       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=   3942.284     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      255 TOTAL
                     EDM=   .57E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          29.405        19.183        .73885E-04   -.49771E-03
   2  alpha         2.3735        .77287        .16119E-01   -.68353E-04
   3  Normalizat    .86082        .20521        .20709E-03    .47954E-04
   4  Prefactor     .58289        .24000        .29185E-03    .50464E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 29.4051
  alpha      = 2.37348
  Normalizat = 0.860822
  Prefactor  = 0.582886
 **********
 **   18 **HESSE 
 **********

 FCN=   3942.284     FROM HESSE     STATUS=OK            23 CALLS      278 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          29.405        19.025        .14777E-04   -1.4623    
   2  alpha         2.3735        .76639        .64475E-03   -.50630E-01
   3  Normalizat    .86082        .20535        .82835E-05   -.97851    
   4  Prefactor     .58289        .24014        .11674E-04   -1.0831    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.91425e-10
Minuit parameter uncertainties:
  1  19.0286
  2  0.778969
  3  0.205535
  4  0.24056
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/95425': 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) = 3942.28369245
delta logL = 0.00177209006961

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  2.941e+01  1.903e+01  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  2.373e+00  7.790e-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:  5.829e-01  2.406e-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:  8.608e-01  2.055e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.82
Ra Dec: 209.928 40.215
Photon Index (Free Index): 2.37 +/- 0.78
Photon Flux (Free Index): 5.62e-08 +/- 4.12e-08
Energy Flux (Free Index): 1.63e-05 +/- 1.04e-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/95425/cmap_HighResolution_253584001_253843201_4FGL_J1359.7+4012_daily_bin55.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.49e-08', energy_flux2='1.63e-05', photon_flux_error='3.47e-08', dlogl='1.77e-03', energy_flux='1.64e-05', photon_flux2='5.62e-08', job_status='DONE', time_completed='2021-09-08 19:48:49.633071', photon_index_error2='0.78', photon_index2='2.37', ts='4.85', fit_tolerance='1e-08', GAL='0.58', photon_index_error='0.00', energy_flux_error2='1.04e-05', EG='0.86', time_epoch_completed='1631155729.63', return_code='0', job_id='95425', GAL2='0.58', EG2='0.86', return_code2='0', energy_flux_error='1.03e-05', photon_flux_error2='4.12e-08', ts2='4.82', photon_index='2.33' WHERE bin_id='55' AND source_name='4FGL J1359.7+4012' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 19:48:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 95425: <4FGL_J1359.7+4012_daily_bin55> in cluster <slac> Done

Job <4FGL_J1359.7+4012_daily_bin55> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 19:35:31 2021
Job was executed on host(s) <bullet0038>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 19:35:32 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:35:32 2021
Terminated at Wed Sep  8 19:48:50 2021
Results reported at Wed Sep  8 19:48:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.7+4012_daily_bin55 209.928 40.2153 253584001 253843201 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 :                                   638.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             316.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   797 sec.
    Turnaround time :                            799 sec.

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

