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


Performing analysis on: 4FGL_J1359.7+4012_daily_bin762
RA = 209.928, Dec = 40.2153
tmin = 436838401, tmax = 437097601
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='97500', job_status='RUN', time_executed='2021-09-08 19:41:14.781952', time_epoch_executed='1631155274.78' WHERE source_name='4FGL J1359.7+4012' and cadence='daily' and bin_id='762'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/97500

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/97500/ft1_4FGL_J1359.7+4012_daily_bin762.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/97500/ft2_4FGL_J1359.7+4012_daily_bin762.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/97500/ft1_4FGL_J1359.7+4012_daily_bin762.fits outfile=/scratch/kocevski/97500/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin762.fits ra=209.928 dec=40.2153 rad=12.0 tmin=436838401.0 tmax=437097601.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.94
user 4.71
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/97500/ft1_filtered_4FGL_J1359.7+4012_daily_bin762.fits" evtable="EVENTS" scfile=/scratch/kocevski/97500/ft2_4FGL_J1359.7+4012_daily_bin762.fits sctable="SC_DATA" outfile=/scratch/kocevski/97500/ltcube_436838401_437097601_4FGL_J1359.7+4012_daily_bin762.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/97500/ft2_4FGL_J1359.7+4012_daily_bin762.fits
.....................!
real 11.87
user 11.52
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/97500/ft1_filtered_4FGL_J1359.7+4012_daily_bin762.fits evtable="EVENTS" scfile=/scratch/kocevski/97500/ft2_4FGL_J1359.7+4012_daily_bin762.fits sctable="SC_DATA" expcube=/scratch/kocevski/97500/ltcube_436838401_437097601_4FGL_J1359.7+4012_daily_bin762.fits outfile=/scratch/kocevski/97500/expmap_436838401_437097601_4FGL_J1359.7+4012_daily_bin762.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/97500/ltcube_436838401_437097601_4FGL_J1359.7+4012_daily_bin762.fits
.....................!
real 192.44
user 187.63
sys 4.50

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/97500/ft1_filtered_4FGL_J1359.7+4012_daily_bin762.fits scfile=/scratch/kocevski/97500/ft2_4FGL_J1359.7+4012_daily_bin762.fits outfile=/scratch/kocevski/97500/cmap_436838401_437097601_4FGL_J1359.7+4012_daily_bin762.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/97500/ft1_filtered_4FGL_J1359.7+4012_daily_bin762.fits scfile=/scratch/kocevski/97500/ft2_4FGL_J1359.7+4012_daily_bin762.fits outfile=/scratch/kocevski/97500/cmap_HighResolution_436838401_437097601_4FGL_J1359.7+4012_daily_bin762.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.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/97500/ft1_filtered_4FGL_J1359.7+4012_daily_bin762.fits evtable="EVENTS" scfile=/scratch/kocevski/97500/ft2_4FGL_J1359.7+4012_daily_bin762.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/97500/Model_4FGL_J1359.7+4012_daily_bin762.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/97500/ft1_filtered_4FGL_J1359.7+4012_daily_bin762.fits.....................!
real 35.44
user 34.13
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .15991E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    1.6274       1.0000         .10000E-03   10000.    
     4 'norm      '    12.601       1.0000         .10000E-03   10000.    
     5 'norm      '    .13721E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .82688       1.0000         .10000E-03   10000.    
     7 'Prefactor '    31.199       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11593E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    32.967       1.0000         .10000E-03   10000.    
    11 'norm      '    6.2134       1.0000         .10000E-03   10000.    
    12 'Prefactor '    149.67       1.0000         .10000E-03   10000.    
    13 'norm      '    .71504E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    30.668       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    22.948       1.0000         .10000E-03   10000.    
    20 'norm      '    6.7991       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    2.2627       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    5.5269       1.0000         .10000E-03   10000.    
    29 'Prefactor '    8.7614       1.0000         .10000E-03   10000.    
    30 'Prefactor '    3.7803       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .68081       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .88643       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=   3851.012     FROM MIGRAD    STATUS=CONVERGED    835 CALLS     4384 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.385       -.86815E-06** at limit **
   2  Prefactor     .10000E-03    15.091        .34289E-06** at limit **
   3  norm          1.6339        3.8745        .94510E-08   -.51905E-04
   4  norm          12.601        12.881        .99477E-07    .21261E-04
   5  norm          .10000E-03    4.1537        .59041E-06** at limit **
   6  Prefactor     .82562        4.4842        .94776E-06    .10282E-03
   7  Prefactor     31.212        22.533       -.60062E-06   -.51932E-04
   8  Prefactor     .10000E-03    18.864       -.13586E-05** at limit **
   9  Prefactor     .10000E-03    36.224       -.90180E-06** at limit **
  10  Prefactor     32.929        31.861        .42797E-05    .11227E-03
  11  norm          6.2126        4.8608        .71983E-07    .14148E-03
  12  Prefactor     149.69        93.342       -.10100E-05    .33704E-04
  13  norm          .67685E-01    .98144        .46191E-06   -.83670E-03
  14  Prefactor     .10000E-03    2.2490        .40710E-07** at limit **
  15  norm          30.665        21.850        .27874E-06    .18577E-04
  16  Prefactor     .10000E-03    7.1545        .78380E-07** at limit **
  17  Prefactor     .10000E-03    34.444       -.26686E-06** at limit **
  18  Prefactor     .10000E-03    1.8613       -.10955E-07** at limit **
  19  Prefactor     22.949        16.991        .84985E-07    .31207E-04
  20  norm          6.7995        4.9530       -.23977E-06   -.16315E-03
  21  Prefactor     .10000E-03    5.4396       -.21616E-08** at limit **
  22  Prefactor     .10000E-03    10.295        .71280E-06** at limit **
  23  Prefactor     .10000E-03    1.2971        .26646E-07** at limit **
  24  norm          .10000E-03    22.030        .17016E-05** at limit **
  25  Prefactor     .10000E-03    9.8144        .16550E-06** at limit **
  26  norm          2.2632        5.6609        .47878E-05   -.41975E-04
  27  Prefactor     .10000E-03    17.902       -.52672E-06** at limit **
  28  norm          5.5255        10.849        .13616E-05   -.57744E-05
  29  Prefactor     8.7612        21.957       -.15069E-05   -.53952E-05
  30  Prefactor     3.7802        7.0207        .23444E-07   -.47647E-05
  31  Normalizat    .68067        .18715        .68068E-06    .21632E-03
  32  Prefactor     .88667        .21619       -.13136E-05    .14641E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 1.63393
  norm       = 12.6006
  norm       = 0.0001
  Prefactor  = 0.82562
  Prefactor  = 31.2119
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 32.9294
  norm       = 6.21255
  Prefactor  = 149.685
  norm       = 0.067685
  Prefactor  = 0.0001
  norm       = 30.6647
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.9492
  norm       = 6.79951
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.26324
  Prefactor  = 0.0001
  norm       = 5.52551
  Prefactor  = 8.76121
  Prefactor  = 3.78022
  Normalizat = 0.680675
  Prefactor  = 0.886666
 **********
 **   18 **HESSE 
 **********

 FCN=   3851.012     FROM HESSE     STATUS=OK           661 CALLS     5045 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    79.691        .44984E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.6339        3.7173        .17600E-03   -1.5452    
   4  norm          12.601        12.883        .11284E-03   -1.4998    
   5  norm          .10000E-03    9.2657        .24129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .82562        3.9927        .21123E-03   -1.5526    
   7  Prefactor     31.212        21.439        .71734E-04   -1.4590    
   8  Prefactor     .10000E-03    18.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    36.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     32.929        32.319        .69789E-04   -1.4560    
  11  norm          6.2126        4.8613        .11626E-03   -1.5209    
  12  Prefactor     149.69        93.695        .16472E-03   -1.3255    
  13  norm          .67685E-01    8.5030        .10951E-02   -1.5656    
  14  Prefactor     .10000E-03    2.2771        .90850E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          30.665        21.882        .72351E-04   -1.4600    
  16  Prefactor     .10000E-03    7.1560        .16211E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    34.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.8678        .82664E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     22.949        17.037        .83616E-04   -1.4749    
  20  norm          6.7995        4.9546        .11304E-03   -1.5186    
  21  Prefactor     .10000E-03    5.4522        .14134E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    10.335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.3029        .69002E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    22.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    9.8231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          2.2632        5.7158        .11251E-02   -1.5407    
  27  Prefactor     .10000E-03    17.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          5.5255        10.821        .85450E-03   -1.5238    
  29  Prefactor     8.7612        21.880        .13542E-03   -1.5116    
  30  Prefactor     3.7802        7.0009        .20763E-03   -1.5319    
  31  Normalizat    .68067        .22626        .22137E-03   -1.0466    
  32  Prefactor     .88667        .25968        .24110E-03   -.96609    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.74953e-09
Minuit parameter uncertainties:
  1  2.02973e-05
  2  0.00103292
  3  3.71781
  4  12.8856
  5  7.58891e-05
  6  3.6314
  7  21.4441
  8  0.00033087
  9  6.18357e-05
  10  32.3358
  11  4.86159
  12  93.7883
  13  1.51636
  14  2.55726e-06
  15  21.8876
  16  4.17885e-06
  17  1.83772e-05
  18  1.39453e-06
  19  17.0407
  20  4.95486
  21  2.75207e-06
  22  2.57771e-05
  23  8.12879e-07
  24  0.000136612
  25  3.79405e-06
  26  5.71714
  27  1.86678e-05
  28  10.8247
  29  21.8999
  30  7.00245
  31  0.226573
  32  0.260046
Done.

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

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  3.066e+01  2.189e+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.867e-01  2.600e-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:  6.807e-01  2.266e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.97
Ra Dec: 209.928 40.215
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 5.68e-08 +/- 4.05e-08
Energy Flux (Fixed Index): 1.69e-05 +/- 1.21e-05

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

Saving results to:
/scratch/kocevski/97500/likelihoodResults_436838401_437097601_4FGL_J1359.7+4012_daily_bin762.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) = 3850.33328368
delta logL = 0.67881071755

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3850.32004838
delta logL = 0.692046018381

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    23.437       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1596       1.0000          .0000       5.0000    
     3 'Normalizat'    .63760       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92288       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=   3850.320     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      295 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          23.426        19.799        .82740E-04   -.45824E-04
   2  alpha         3.1591        .77289        .12884E-01    .58248E-05
   3  Normalizat    .63767        .21134        .22791E-03   -.26513E-04
   4  Prefactor     .92287        .25664        .23669E-03   -.23175E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 23.4256
  alpha      = 3.15912
  Normalizat = 0.637675
  Prefactor  = 0.922874
 **********
 **   18 **HESSE 
 **********

 FCN=   3850.320     FROM HESSE     STATUS=OK            25 CALLS      320 TOTAL
                     EDM=   .63E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          23.426        19.009        .33096E-05   -1.4740    
   2  alpha         3.1591        .74260        .51534E-03    .26680    
   3  Normalizat    .63767        .21165        .91164E-05   -1.0641    
   4  Prefactor     .92287        .25692        .94677E-05   -.95346    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.30303e-12
Minuit parameter uncertainties:
  1  19.014
  2  0.754862
  3  0.211922
  4  0.25726
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/97500': 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) = 3850.32004701
delta logL = 0.692047386795

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  2.343e+01  1.901e+01  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  3.159e+00  7.549e-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.229e-01  2.573e-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:  6.377e-01  2.119e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.45
Ra Dec: 209.928 40.215
Photon Index (Free Index): 3.16 +/- 0.75
Photon Flux (Free Index): 8.71e-08 +/- 5.35e-08
Energy Flux (Free Index): 1.72e-05 +/- 1.03e-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/97500/cmap_HighResolution_436838401_437097601_4FGL_J1359.7+4012_daily_bin762.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.15e-05', comment='SUCCESS', photon_flux='5.68e-08', energy_flux2='1.72e-05', photon_flux_error='4.05e-08', dlogl='6.92e-01', energy_flux='1.69e-05', photon_flux2='8.71e-08', job_status='DONE', time_completed='2021-09-08 19:53:05.995654', photon_index_error2='0.75', photon_index2='3.16', ts='2.97', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='1.39e-07', energy_flux_error2='1.03e-05', EG='0.68', time_epoch_completed='1631155986.0', return_code='0', job_id='97500', GAL2='0.92', EG2='0.64', return_code2='0', energy_flux_error='1.21e-05', photon_flux_error2='5.35e-08', ts2='4.45', photon_index='2.33' WHERE bin_id='762' AND source_name='4FGL J1359.7+4012' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 19:53:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0130>
Subject: Job 97500: <4FGL_J1359.7+4012_daily_bin762> in cluster <slac> Done

Job <4FGL_J1359.7+4012_daily_bin762> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  8 19:41:04 2021
Job was executed on host(s) <bullet0130>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 19:41:05 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:41:05 2021
Terminated at Wed Sep  8 19:53:06 2021
Results reported at Wed Sep  8 19:53:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.7+4012_daily_bin762 209.928 40.2153 436838401 437097601 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 :                                   707.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             339.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   721 sec.
    Turnaround time :                            722 sec.

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

