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


Performing analysis on: 4FGL_J1359.7+4012_daily_bin1466
RA = 209.928, Dec = 40.2153
tmin = 619315201, tmax = 619574401
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='101865', job_status='RUN', time_executed='2021-09-08 19:56:07.507990', time_epoch_executed='1631156167.51' WHERE source_name='4FGL J1359.7+4012' and cadence='daily' and bin_id='1466'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/101865

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/101865/ft1_4FGL_J1359.7+4012_daily_bin1466.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/101865/ft2_4FGL_J1359.7+4012_daily_bin1466.fits


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

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

Done.
real 3.52
user 3.30
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/101865/ft2_4FGL_J1359.7+4012_daily_bin1466.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/101865/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin1466.fits evtable="EVENTS" outfile="/scratch/kocevski/101865/ft1_filtered_4FGL_J1359.7+4012_daily_bin1466.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.53
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/101865/ft1_filtered_4FGL_J1359.7+4012_daily_bin1466.fits" evtable="EVENTS" scfile=/scratch/kocevski/101865/ft2_4FGL_J1359.7+4012_daily_bin1466.fits sctable="SC_DATA" outfile=/scratch/kocevski/101865/ltcube_619315201_619574401_4FGL_J1359.7+4012_daily_bin1466.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/101865/ft2_4FGL_J1359.7+4012_daily_bin1466.fits
.....................!
real 11.77
user 11.42
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/101865/ft1_filtered_4FGL_J1359.7+4012_daily_bin1466.fits evtable="EVENTS" scfile=/scratch/kocevski/101865/ft2_4FGL_J1359.7+4012_daily_bin1466.fits sctable="SC_DATA" expcube=/scratch/kocevski/101865/ltcube_619315201_619574401_4FGL_J1359.7+4012_daily_bin1466.fits outfile=/scratch/kocevski/101865/expmap_619315201_619574401_4FGL_J1359.7+4012_daily_bin1466.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/101865/ltcube_619315201_619574401_4FGL_J1359.7+4012_daily_bin1466.fits
.....................!
real 190.90
user 185.89
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/101865/ft1_filtered_4FGL_J1359.7+4012_daily_bin1466.fits scfile=/scratch/kocevski/101865/ft2_4FGL_J1359.7+4012_daily_bin1466.fits outfile=/scratch/kocevski/101865/cmap_619315201_619574401_4FGL_J1359.7+4012_daily_bin1466.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=209.928 yref=40.2153 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/101865/ft1_filtered_4FGL_J1359.7+4012_daily_bin1466.fits scfile=/scratch/kocevski/101865/ft2_4FGL_J1359.7+4012_daily_bin1466.fits outfile=/scratch/kocevski/101865/cmap_HighResolution_619315201_619574401_4FGL_J1359.7+4012_daily_bin1466.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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/101865/ft1_filtered_4FGL_J1359.7+4012_daily_bin1466.fits evtable="EVENTS" scfile=/scratch/kocevski/101865/ft2_4FGL_J1359.7+4012_daily_bin1466.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/101865/Model_4FGL_J1359.7+4012_daily_bin1466.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/101865/ft1_filtered_4FGL_J1359.7+4012_daily_bin1466.fits.....................!
real 48.18
user 46.80
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.817       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.0727       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11272E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10275E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    30.409       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.1617       1.0000         .10000E-03   10000.    
    11 'norm      '    .12248E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10592E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.1006       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.9975       1.0000         .10000E-03   10000.    
    15 'norm      '    12.992       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    61.411       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.608       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.1508       1.0000         .10000E-03   10000.    
    23 'Prefactor '    13.903       1.0000         .10000E-03   10000.    
    24 'norm      '    .10178E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    28.420       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .30824E-02   1.0000         .10000E-03   10000.    
    28 'norm      '    13.422       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    6.3983       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.1818       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .69798       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=   6072.543     FROM MIGRAD    STATUS=CONVERGED    861 CALLS     4387 TOTAL
                     EDM=   .91E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.815        36.801       -.22696E-06    .18235E-06
   2  Prefactor     .10000E-03    4.8538        .86185E-07** at limit **
   3  norm          .10000E-03    1.9200        .62319E-07** at limit **
   4  norm          .10000E-03    10.429        .25606E-06** at limit **
   5  norm          .10000E-03    1.7489        .60977E-07** at limit **
   6  Prefactor     6.0730        3.8740       -.94402E-07   -.59492E-04
   7  Prefactor     .10000E-03    104.91        .29663E-05** at limit **
   8  Prefactor     .10000E-03    37.195       -.48886E-07** at limit **
   9  Prefactor     30.418        46.904        .84739E-07   -.43735E-05
  10  Prefactor     3.1551        56.619       -.14684E-05   -.17492E-04
  11  norm          .10000E-03    3.7578        .42386E-06** at limit **
  12  Prefactor     .10000E-03    66.491       -.70029E-06** at limit **
  13  norm          3.1007        1.4508       -.43659E-07    .57685E-05
  14  Prefactor     5.9977        4.7988       -.43313E-07   -.28087E-04
  15  norm          12.994        19.197       -.20066E-06    .20740E-05
  16  Prefactor     .10000E-03    6.7074        .14762E-06** at limit **
  17  Prefactor     61.414        38.691       -.26162E-06    .10568E-06
  18  Prefactor     .10000E-03    1.1216        .54832E-07** at limit **
  19  Prefactor     .10000E-03    5.1453        .10707E-06** at limit **
  20  norm          .10000E-03    2.3962        .38669E-06** at limit **
  21  Prefactor     15.554        22.673       -.26473E-05   -.57442E-04
  22  Prefactor     3.2008        29.637        .45393E-05    .26141E-05
  23  Prefactor     13.904        5.2476       -.52922E-07   -.80056E-05
  24  norm          .10000E-03    30.281        .14891E-05** at limit **
  25  Prefactor     28.409        24.811        .68962E-06    .20103E-04
  26  norm          .10000E-03    2.1570        .25558E-06** at limit **
  27  Prefactor     .10000E-03    393.88        .78398E-05** at limit **
  28  norm          13.422        9.2212        .69958E-07   -.84566E-06
  29  Prefactor     .10000E-03    5.1816        .16343E-06** at limit **
  30  Prefactor     6.3974        7.8362        .63840E-07    .18312E-05
  31  Normalizat    1.1818        .18148        .10205E-05   -.97550E-04
  32  Prefactor     .69797        .20470       -.11770E-05    .27380E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.8153
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 6.07302
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.4176
  Prefactor  = 3.15507
  norm       = 0.000100002
  Prefactor  = 0.0001
  norm       = 3.1007
  Prefactor  = 5.99773
  norm       = 12.9943
  Prefactor  = 0.0001
  Prefactor  = 61.4137
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.5537
  Prefactor  = 3.20081
  Prefactor  = 13.9038
  norm       = 0.0001
  Prefactor  = 28.4089
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 13.4224
  Prefactor  = 0.0001
  Prefactor  = 6.39743
  Normalizat = 1.18179
  Prefactor  = 0.697974
 **********
 **   18 **HESSE 
 **********

 FCN=   6072.543     FROM HESSE     STATUS=OK           661 CALLS     5048 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.815        36.795        .89974E-04   -1.4817    
   2  Prefactor     .10000E-03    4.8580        .16767E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.9282        .10543E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    10.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.7641        .10062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.0730        3.6591        .10858E-03   -1.5215    
   7  Prefactor     .10000E-03    101.26        .44688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    37.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     30.418        46.837        .72658E-04   -1.4604    
  10  Prefactor     3.1551        56.094        .22794E-03   -1.5353    
  11  norm          .10000E-03    8.9509        .28459E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    66.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.1007        1.4468        .60992E-04   -1.5356    
  14  Prefactor     5.9977        4.7976        .14550E-03   -1.5218    
  15  norm          12.994        19.235        .11113E-03   -1.4987    
  16  Prefactor     .10000E-03    6.7130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     61.414        38.719        .51202E-04   -1.4139    
  18  Prefactor     .10000E-03    1.1225        .80577E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.1512        .17261E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.4614        .11797E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     15.554        22.898        .10138E-03   -1.4919    
  22  Prefactor     3.2008        29.314        .22835E-03   -1.5350    
  23  Prefactor     13.904        5.2505        .10413E-03   -1.4962    
  24  norm          .10000E-03    31.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     28.409        24.879        .75150E-04   -1.4641    
  26  norm          .10000E-03    2.1603        .11162E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    394.58        .39598E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          13.422        9.2197        .10933E-03   -1.4975    
  29  Prefactor     .10000E-03    5.1823        .17322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     6.3974        7.8292        .15868E-03   -1.5202    
  31  Normalizat    1.1818        .20596        .21096E-03   -.87167    
  32  Prefactor     .69797        .23233        .32018E-03   -1.0361    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.02063e-10
Minuit parameter uncertainties:
  1  36.8371
  2  1.80937e-06
  3  7.2158e-08
  4  3.67325e-06
  5  5.8274e-07
  6  3.65919
  7  0.000285095
  8  2.06572e-05
  9  46.8941
  10  26.6355
  11  0.000263963
  12  9.57631e-05
  13  1.4468
  14  4.79792
  15  19.2438
  16  1.409e-06
  17  38.7348
  18  3.5615e-07
  19  3.15222e-06
  20  1.43166e-06
  21  22.911
  22  19.3855
  23  5.25069
  24  3.79989e-05
  25  24.8878
  26  3.04314e-06
  27  0.000862124
  28  9.22065
  29  4.02288e-06
  30  7.83048
  31  0.206102
  32  0.232648
Done.

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

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  1.299e+01  1.924e+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:  6.980e-01  2.326e-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.182e+00  2.061e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/101865/likelihoodResults_619315201_619574401_4FGL_J1359.7+4012_daily_bin1466.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) = 6071.98956794
delta logL = 0.553159590892

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6071.98366573
delta logL = 0.559061800067

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.637       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3848       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1378       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73202       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=   6071.984     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      252 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.629        15.139        .11744E-03    .26051E-03
   2  alpha         3.3858        1.0228        .21000E-01    .32278E-04
   3  Normalizat    1.1378        .19991        .21435E-03   -.51917E-03
   4  Prefactor     .73206        .23422        .31312E-03   -.27626E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 11.6291
  alpha      = 3.38584
  Normalizat = 1.13782
  Prefactor  = 0.732062
 **********
 **   18 **HESSE 
 **********

 FCN=   6071.984     FROM HESSE     STATUS=OK            25 CALLS      277 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.629        13.881        .46974E-05   -1.5026    
   2  alpha         3.3858        .94206        .84001E-03    .36220    
   3  Normalizat    1.1378        .20023        .42870E-04   -.88547    
   4  Prefactor     .73206        .23446        .12525E-04   -1.0228    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.0785e-10
Minuit parameter uncertainties:
  1  13.8844
  2  0.969617
  3  0.200368
  4  0.234778
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/101865': 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) = 6071.98366464
delta logL = 0.559062883158

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  1.163e+01  1.388e+01  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  3.386e+00  9.696e-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:  7.321e-01  2.348e-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.138e+00  2.004e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.72
Ra Dec: 209.928 40.215
Photon Index (Free Index): 3.39 +/- 0.97
Photon Flux (Free Index): 5.40e-08 +/- 4.74e-08
Energy Flux (Free Index): 9.92e-06 +/- 8.67e-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/101865/cmap_HighResolution_619315201_619574401_4FGL_J1359.7+4012_daily_bin1466.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.92e-05', comment='SUCCESS', energy_flux2='9.92e-06', dlogl='5.59e-01', photon_flux2='5.40e-08', job_status='DONE', time_completed='2021-09-08 20:12:17.490043', photon_index_error2='0.97', photon_index2='3.39', ts='0.55', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', photon_flux_upper_limit='9.80e-08', energy_flux_error2='8.67e-06', EG='1.18', time_epoch_completed='1631157137.49', return_code='0', job_id='101865', GAL2='0.73', EG2='1.14', return_code2='0', photon_flux_error2='4.74e-08', ts2='1.72', photon_index='2.33' WHERE bin_id='1466' AND source_name='4FGL J1359.7+4012' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 20:12:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0163>
Subject: Job 101865: <4FGL_J1359.7+4012_daily_bin1466> in cluster <slac> Done

Job <4FGL_J1359.7+4012_daily_bin1466> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  8 19:55:50 2021
Job was executed on host(s) <bullet0163>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 19:55:51 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:55:51 2021
Terminated at Wed Sep  8 20:12:18 2021
Results reported at Wed Sep  8 20:12:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.7+4012_daily_bin1466 209.928 40.2153 619315201 619574401 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 :                                   940.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             311.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   986 sec.
    Turnaround time :                            988 sec.

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

