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


Performing analysis on: 4FGL_J1359.7+4012_daily_bin1061
RA = 209.928, Dec = 40.2153
tmin = 514339201, tmax = 514598401
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='98994', job_status='RUN', time_executed='2021-09-08 19:46:09.725244', time_epoch_executed='1631155569.73' WHERE source_name='4FGL J1359.7+4012' and cadence='daily' and bin_id='1061'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/98994

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/98994/ft1_4FGL_J1359.7+4012_daily_bin1061.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/98994/ft2_4FGL_J1359.7+4012_daily_bin1061.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/98994/ft1_4FGL_J1359.7+4012_daily_bin1061.fits outfile=/scratch/kocevski/98994/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin1061.fits ra=209.928 dec=40.2153 rad=12.0 tmin=514339201.0 tmax=514598401.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 4.18
user 3.90
sys 0.23

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/98994/ft1_filtered_4FGL_J1359.7+4012_daily_bin1061.fits" evtable="EVENTS" scfile=/scratch/kocevski/98994/ft2_4FGL_J1359.7+4012_daily_bin1061.fits sctable="SC_DATA" outfile=/scratch/kocevski/98994/ltcube_514339201_514598401_4FGL_J1359.7+4012_daily_bin1061.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/98994/ft2_4FGL_J1359.7+4012_daily_bin1061.fits
.....................!
real 11.88
user 11.35
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/98994/ft1_filtered_4FGL_J1359.7+4012_daily_bin1061.fits evtable="EVENTS" scfile=/scratch/kocevski/98994/ft2_4FGL_J1359.7+4012_daily_bin1061.fits sctable="SC_DATA" expcube=/scratch/kocevski/98994/ltcube_514339201_514598401_4FGL_J1359.7+4012_daily_bin1061.fits outfile=/scratch/kocevski/98994/expmap_514339201_514598401_4FGL_J1359.7+4012_daily_bin1061.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/98994/ltcube_514339201_514598401_4FGL_J1359.7+4012_daily_bin1061.fits
.....................!
real 192.71
user 187.22
sys 5.09

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/98994/ft1_filtered_4FGL_J1359.7+4012_daily_bin1061.fits scfile=/scratch/kocevski/98994/ft2_4FGL_J1359.7+4012_daily_bin1061.fits outfile=/scratch/kocevski/98994/cmap_514339201_514598401_4FGL_J1359.7+4012_daily_bin1061.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.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/98994/ft1_filtered_4FGL_J1359.7+4012_daily_bin1061.fits scfile=/scratch/kocevski/98994/ft2_4FGL_J1359.7+4012_daily_bin1061.fits outfile=/scratch/kocevski/98994/cmap_HighResolution_514339201_514598401_4FGL_J1359.7+4012_daily_bin1061.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.55
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/98994/ft1_filtered_4FGL_J1359.7+4012_daily_bin1061.fits evtable="EVENTS" scfile=/scratch/kocevski/98994/ft2_4FGL_J1359.7+4012_daily_bin1061.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/98994/Model_4FGL_J1359.7+4012_daily_bin1061.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/98994/ft1_filtered_4FGL_J1359.7+4012_daily_bin1061.fits.....................!
real 47.18
user 45.89
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    8.7673       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .87531E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .41732E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.1804       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    34.579       1.0000         .10000E-03   10000.    
    11 'norm      '    .12433E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    197.90       1.0000         .10000E-03   10000.    
    13 'norm      '    6.1355       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.7669       1.0000         .10000E-03   10000.    
    15 'norm      '    10.464       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    33.161       1.0000         .10000E-03   10000.    
    20 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.5842       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .34011E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .39303       1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.2419       1.0000         .10000E-03   10000.    
    26 'norm      '    31.864       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .61724       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    6.8390       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .78574       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0523       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=   5727.417     FROM MIGRAD    STATUS=CONVERGED    866 CALLS     4478 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.635        .22122E-06** at limit **
   2  Prefactor     8.7666        17.128       -.72737E-07    .20869E-04
   3  norm          .10000E-03    1.9987        .13466E-07** at limit **
   4  norm          .10001E-03    44.170       -.24553E-05** at limit **
   5  norm          .10000E-03    1.4159       -.24731E-07** at limit **
   6  Prefactor     .10007E-03    1.7290       -.25927E-06** at limit **
   7  Prefactor     7.1711        12.467       -.22274E-06    .12328E-03
   8  Prefactor     .10000E-03    23.970       -.77935E-07** at limit **
   9  Prefactor     .10000E-03    23.470       -.19634E-06** at limit **
  10  Prefactor     34.588        37.298        .14633E-06   -.76918E-04
  11  norm          .10000E-03    2.7746       -.29919E-07** at limit **
  12  Prefactor     197.89        87.940        .36086E-06    .95165E-04
  13  norm          6.1358        1.9741        .89381E-08   -.51240E-05
  14  Prefactor     7.7675        4.1427        .89448E-08    .22728E-04
  15  norm          10.464        10.720       -.49055E-07   -.15726E-04
  16  Prefactor     .10000E-03    6.5176        .30201E-07** at limit **
  17  Prefactor     .10000E-03    23.350       -.31288E-06** at limit **
  18  Prefactor     .10000E-03    1.4496        .12457E-07** at limit **
  19  Prefactor     33.166        21.856        .12769E-06    .26423E-04
  20  norm          .10000E-03    1.6419        .16006E-07** at limit **
  21  Prefactor     7.5663        10.102       -.18261E-05   -.15728E-03
  22  Prefactor     .10196E-03    21.572        .68533E-07** at limit **
  23  Prefactor     .38779        3.1883       -.87198E-06    .15453E-03
  24  norm          .10000E-03    3.5215        .17971E-07** at limit **
  25  Prefactor     1.2683        149.34       -.14709E-05    .17356E-04
  26  norm          31.866        9.0718       -.13401E-07    .10204E-03
  27  Prefactor     .10000E-03    59.458       -.44433E-06** at limit **
  28  norm          .61677        8.6490       -.13171E-05    .20380E-03
  29  Prefactor     .10000E-03    12.244       -.48414E-07** at limit **
  30  Prefactor     6.8388        7.0934        .31971E-07    .33400E-04
  31  Normalizat    .78543        .18550       -.90527E-06    .89871E-04
  32  Prefactor     1.0526        .20795        .57011E-06    .93160E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.76659
  norm       = 0.0001
  norm       = 0.00010001
  norm       = 0.0001
  Prefactor  = 0.000100066
  Prefactor  = 7.17107
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.5883
  norm       = 0.0001
  Prefactor  = 197.888
  norm       = 6.13581
  Prefactor  = 7.7675
  norm       = 10.464
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.1664
  norm       = 0.0001
  Prefactor  = 7.56628
  Prefactor  = 0.000101962
  Prefactor  = 0.387787
  norm       = 0.0001
  Prefactor  = 1.26828
  norm       = 31.8656
  Prefactor  = 0.000100001
  norm       = 0.616767
  Prefactor  = 0.0001
  Prefactor  = 6.83885
  Normalizat = 0.785429
  Prefactor  = 1.05257
 **********
 **   18 **HESSE 
 **********

 FCN=   5727.417     FROM HESSE     STATUS=OK           671 CALLS     5149 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.7666        17.118        .13537E-03   -1.5116    
   3  norm          .10000E-03    2.0032        .10444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10001E-03    45.835        .39543E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.4197        .87933E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10007E-03    34.431        .17710E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.1711        12.162        .14969E-03   -1.5172    
   8  Prefactor     .10000E-03    24.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    23.543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     34.588        37.386        .68148E-04   -1.4531    
  11  norm          .10000E-03    7.8159        .24417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     197.89        88.736        .14360E-03   -1.2885    
  13  norm          6.1358        1.9740        .56314E-04   -1.5213    
  14  Prefactor     7.7675        4.1453        .10841E-03   -1.5150    
  15  norm          10.464        10.723        .12386E-03   -1.5061    
  16  Prefactor     .10000E-03    6.5252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    23.483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.4535        .88974E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     33.166        21.940        .69585E-04   -1.4556    
  20  norm          .10000E-03    1.7009        .18938E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.5663        13.513        .14562E-03   -1.5158    
  22  Prefactor     .10196E-03    33.316        .73331E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .38779        3.2947        .25751E-02   -1.5583    
  24  norm          .10000E-03    3.5220        .13870E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.2683        152.12        .40223E-03   -1.5483    
  26  norm          31.866        9.0914        .70983E-04   -1.4578    
  27  Prefactor     .10000E-03    60.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .61677        9.6917        .45206E-03   -1.5551    
  29  Prefactor     .10000E-03    12.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     6.8388        7.0912        .15342E-03   -1.5185    
  31  Normalizat    .78543        .22476        .24575E-03   -1.0061    
  32  Prefactor     1.0526        .25199        .26470E-03   -.90997    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.26022e-09
Minuit parameter uncertainties:
  1  8.61077e-05
  2  17.1277
  3  9.00764e-07
  4  0.00133668
  5  5.09074e-08
  6  0.00302266
  7  12.1663
  8  0.000188702
  9  0.000141689
  10  37.411
  11  7.07321e-05
  12  88.7962
  13  1.97405
  14  4.1455
  15  10.7245
  16  5.18459e-06
  17  0.000165361
  18  5.51582e-07
  19  21.9456
  20  3.57624e-06
  21  13.5186
  22  0.0161788
  23  2.26053
  24  2.54134e-06
  25  27.8519
  26  9.09181
  27  0.000568024
  28  4.89033
  29  4.78353e-05
  30  7.09206
  31  0.22503
  32  0.25227
Done.

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

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  1.046e+01  1.072e+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:  1.053e+00  2.523e-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:  7.854e-01  2.250e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.43
Ra Dec: 209.928 40.215
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 1.94e-08 +/- 1.98e-08
Energy Flux (Fixed Index): 5.78e-06 +/- 5.92e-06

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

Saving results to:
/scratch/kocevski/98994/likelihoodResults_514339201_514598401_4FGL_J1359.7+4012_daily_bin1061.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) = 5727.39774508
delta logL = 0.0191797426696

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5727.39717698
delta logL = 0.0197478369018

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.178       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1065       1.0000          .0000       5.0000    
     3 'Normalizat'    .78950       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0496       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=   5727.397     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      216 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.178        11.805        .31400E-02    .22438E-02
   2  alpha         2.1063        1.0750        .41815       -.83579E-05
   3  Normalizat    .78945        .16659        .43473E-01    .16735E-04
   4  Prefactor     1.0496        .20522        .59932E-01    .85960E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 10.1776
  alpha      = 2.10631
  Normalizat = 0.789454
  Prefactor  = 1.04958
 **********
 **   18 **HESSE 
 **********

 FCN=   5727.397     FROM HESSE     STATUS=OK            31 CALLS      247 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.178        10.877        .12560E-03   -1.5070    
   2  alpha         2.1063        1.0713        .29692E-01   -.15813    
   3  Normalizat    .78945        .20070        .24519E-03   -1.0046    
   4  Prefactor     1.0496        .24700        .26504E-03   -.91095    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.82393e-09
Minuit parameter uncertainties:
  1  10.8796
  2  1.10818
  3  0.200886
  4  0.247266
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/98994': 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) = 5727.39717654
delta logL = 0.019748278306

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  1.018e+01  1.088e+01  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  2.106e+00  1.108e+00  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:  1.050e+00  2.473e-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:  7.895e-01  2.009e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.47
Ra Dec: 209.928 40.215
Photon Index (Free Index): 2.11 +/- 1.11
Photon Flux (Free Index): 1.64e-08 +/- 2.23e-08
Energy Flux (Free Index): 5.76e-06 +/- 6.01e-06

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/98994/cmap_HighResolution_514339201_514598401_4FGL_J1359.7+4012_daily_bin1061.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.21e-05', comment='SUCCESS', photon_flux='1.94e-08', energy_flux2='5.76e-06', photon_flux_error='1.98e-08', dlogl='1.97e-02', energy_flux='5.78e-06', photon_flux2='1.64e-08', job_status='DONE', time_completed='2021-09-08 20:01:31.961850', photon_index_error2='1.11', photon_index2='2.11', ts='2.43', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='7.42e-08', energy_flux_error2='6.01e-06', EG='0.79', time_epoch_completed='1631156491.96', return_code='0', job_id='98994', GAL2='1.05', EG2='0.79', return_code2='0', energy_flux_error='5.92e-06', photon_flux_error2='2.23e-08', ts2='2.47', photon_index='2.33' WHERE bin_id='1061' AND source_name='4FGL J1359.7+4012' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 20:01:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0155>
Subject: Job 98994: <4FGL_J1359.7+4012_daily_bin1061> in cluster <slac> Done

Job <4FGL_J1359.7+4012_daily_bin1061> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  8 19:45:53 2021
Job was executed on host(s) <bullet0155>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 19:45:54 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:45:54 2021
Terminated at Wed Sep  8 20:01:32 2021
Results reported at Wed Sep  8 20:01:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.7+4012_daily_bin1061 209.928 40.2153 514339201 514598401 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 :                                   914.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             329.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   938 sec.
    Turnaround time :                            939 sec.

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

