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


Performing analysis on: 4FGL_J1359.7+4012_daily_bin841
RA = 209.928, Dec = 40.2153
tmin = 457315201, tmax = 457574401
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='98629', job_status='RUN', time_executed='2021-09-08 19:45:41.198632', time_epoch_executed='1631155541.2' WHERE source_name='4FGL J1359.7+4012' and cadence='daily' and bin_id='841'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/98629

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/98629/ft1_4FGL_J1359.7+4012_daily_bin841.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/98629/ft2_4FGL_J1359.7+4012_daily_bin841.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/98629/ft1_4FGL_J1359.7+4012_daily_bin841.fits outfile=/scratch/kocevski/98629/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin841.fits ra=209.928 dec=40.2153 rad=12.0 tmin=457315201.0 tmax=457574401.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 5.06
user 4.80
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/98629/ft1_filtered_4FGL_J1359.7+4012_daily_bin841.fits" evtable="EVENTS" scfile=/scratch/kocevski/98629/ft2_4FGL_J1359.7+4012_daily_bin841.fits sctable="SC_DATA" outfile=/scratch/kocevski/98629/ltcube_457315201_457574401_4FGL_J1359.7+4012_daily_bin841.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/98629/ft2_4FGL_J1359.7+4012_daily_bin841.fits
.....................!
real 11.56
user 11.25
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/98629/ft1_filtered_4FGL_J1359.7+4012_daily_bin841.fits evtable="EVENTS" scfile=/scratch/kocevski/98629/ft2_4FGL_J1359.7+4012_daily_bin841.fits sctable="SC_DATA" expcube=/scratch/kocevski/98629/ltcube_457315201_457574401_4FGL_J1359.7+4012_daily_bin841.fits outfile=/scratch/kocevski/98629/expmap_457315201_457574401_4FGL_J1359.7+4012_daily_bin841.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/98629/ltcube_457315201_457574401_4FGL_J1359.7+4012_daily_bin841.fits
.....................!
real 189.42
user 184.94
sys 4.11

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/98629/ft1_filtered_4FGL_J1359.7+4012_daily_bin841.fits scfile=/scratch/kocevski/98629/ft2_4FGL_J1359.7+4012_daily_bin841.fits outfile=/scratch/kocevski/98629/cmap_457315201_457574401_4FGL_J1359.7+4012_daily_bin841.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/98629/ft1_filtered_4FGL_J1359.7+4012_daily_bin841.fits scfile=/scratch/kocevski/98629/ft2_4FGL_J1359.7+4012_daily_bin841.fits outfile=/scratch/kocevski/98629/cmap_HighResolution_457315201_457574401_4FGL_J1359.7+4012_daily_bin841.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/98629/ft1_filtered_4FGL_J1359.7+4012_daily_bin841.fits evtable="EVENTS" scfile=/scratch/kocevski/98629/ft2_4FGL_J1359.7+4012_daily_bin841.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/98629/Model_4FGL_J1359.7+4012_daily_bin841.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/98629/ft1_filtered_4FGL_J1359.7+4012_daily_bin841.fits....................!
real 48.23
user 46.87
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    14.996       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.2409       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.9453       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.2979       1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.634       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.7923       1.0000         .10000E-03   10000.    
    11 'norm      '    1.0253       1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.100       1.0000         .10000E-03   10000.    
    13 'norm      '    10.093       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    17.927       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .13101E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10373E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.2735       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.7470       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12932E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.0642       1.0000         .10000E-03   10000.    
    24 'norm      '    14.672       1.0000         .10000E-03   10000.    
    25 'Prefactor '    12.514       1.0000         .10000E-03   10000.    
    26 'norm      '    6.0964       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    44.696       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .52677       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.4861       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=   6117.414     FROM MIGRAD    STATUS=CONVERGED    863 CALLS     4400 TOTAL
                     EDM=   .80E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    50.091        .26351E-05** at limit **
   2  Prefactor     .10000E-03    17.763       -.21208E-06** at limit **
   3  norm          14.997        8.2378        .14386E-06    .75711E-04
   4  norm          .10000E-03    4.8681       -.34034E-07** at limit **
   5  norm          3.2404        4.0116        .28274E-07    .64356E-04
   6  Prefactor     1.9448        3.6268       -.10247E-05    .47948E-04
   7  Prefactor     .10000E-03    3.8922        .54229E-07** at limit **
   8  Prefactor     3.2474        65.805       -.17548E-05    .38235E-04
   9  Prefactor     24.635        27.239        .18120E-06    .94870E-05
  10  Prefactor     5.7791        22.064        .91443E-06   -.53031E-05
  11  norm          1.0233        3.4881       -.18768E-05    .73225E-04
  12  Prefactor     24.080        44.287        .16541E-05    .49926E-04
  13  norm          10.093        2.0855       -.12231E-07    .10988E-03
  14  Prefactor     .10000E-03    1.2582       -.93118E-07** at limit **
  15  norm          17.931        16.756       -.14001E-05    .73461E-04
  16  Prefactor     .10000E-03    26.955        .33720E-06** at limit **
  17  Prefactor     .10000E-03    124.77        .37471E-05** at limit **
  18  Prefactor     .10000E-03    5.5618       -.16089E-05** at limit **
  19  Prefactor     6.2541        21.313       -.58698E-06    .70690E-05
  20  norm          .10000E-03    1.3277       -.50424E-07** at limit **
  21  Prefactor     2.7782        11.293        .59787E-06    .60340E-04
  22  Prefactor     .10000E-03    61.743        .57157E-05** at limit **
  23  Prefactor     6.0643        4.0020       -.19399E-06    .41868E-04
  24  norm          14.671        12.918        .23395E-06    .46377E-04
  25  Prefactor     12.517        16.884       -.13724E-06    .16787E-04
  26  norm          6.0979        6.5011       -.58462E-06   -.28037E-04
  27  Prefactor     .10000E-03    18.628       -.13394E-05** at limit **
  28  norm          .10000E-03    4.3871       -.26272E-07** at limit **
  29  Prefactor     44.691        31.173       -.22584E-06    .35099E-04
  30  Prefactor     .10000E-03    12.705       -.10994E-06** at limit **
  31  Normalizat    .52707        .18252        .13499E-05    .10934E-03
  32  Prefactor     1.4856        .21250        .92393E-06    .56166E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.9973
  norm       = 0.0001
  norm       = 3.24044
  Prefactor  = 1.94479
  Prefactor  = 0.0001
  Prefactor  = 3.24738
  Prefactor  = 24.6352
  Prefactor  = 5.77905
  norm       = 1.02326
  Prefactor  = 24.0804
  norm       = 10.0926
  Prefactor  = 0.0001
  norm       = 17.9313
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.25409
  norm       = 0.0001
  Prefactor  = 2.7782
  Prefactor  = 0.000100002
  Prefactor  = 6.06434
  norm       = 14.6715
  Prefactor  = 12.5173
  norm       = 6.09794
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 44.6907
  Prefactor  = 0.0001
  Normalizat = 0.527075
  Prefactor  = 1.48562
 **********
 **   18 **HESSE 
 **********

 FCN=   6117.414     FROM HESSE     STATUS=OK           663 CALLS     5063 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    50.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    17.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          14.997        8.1742        .10343E-03   -1.4933    
   4  norm          .10000E-03    4.8722        .16855E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.2404        3.9764        .16335E-03   -1.5348    
   6  Prefactor     1.9448        3.6050        .18019E-03   -1.5429    
   7  Prefactor     .10000E-03    3.8971        .15067E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.2474        63.314        .22294E-03   -1.5348    
   9  Prefactor     24.635        27.216        .80708E-04   -1.4715    
  10  Prefactor     5.7791        21.760        .16688E-03   -1.5227    
  11  norm          1.0233        3.4732        .25807E-03   -1.5506    
  12  Prefactor     24.080        44.614        .81595E-04   -1.4726    
  13  norm          10.093        2.0860        .48757E-04   -1.5072    
  14  Prefactor     .10000E-03    1.2654        .85690E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          17.931        16.738        .47297E-03   -1.4861    
  16  Prefactor     .10000E-03    27.888        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    127.01        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    16.725        .25846E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.2541        21.246        .16026E-03   -1.5208    
  20  norm          .10000E-03    1.3351        .88008E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.7782        11.557        .24563E-03   -1.5375    
  22  Prefactor     .10000E-03    71.856        .53341E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     6.0643        4.0005        .12170E-03   -1.5215    
  24  norm          14.671        12.898        .10457E-03   -1.4942    
  25  Prefactor     12.517        16.872        .11324E-03   -1.5000    
  26  norm          6.0979        6.4903        .16260E-03   -1.5214    
  27  Prefactor     .10000E-03    18.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    4.3927        .15997E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     44.691        31.133        .59969E-04   -1.4370    
  30  Prefactor     .10000E-03    12.870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .52707        .21471        .30227E-03   -1.1118    
  32  Prefactor     1.4856        .25147        .24048E-03   -.77943    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79147e-10
Minuit parameter uncertainties:
  1  0.000269536
  2  2.40176e-05
  3  8.17478
  4  3.86945e-06
  5  3.97673
  6  3.60544
  7  5.61874e-06
  8  28.7123
  9  27.2294
  10  21.7895
  11  3.47384
  12  44.6761
  13  2.08599
  14  2.14074e-06
  15  16.7421
  16  2.20139e-05
  17  0.00023831
  18  0.000175085
  19  21.2714
  20  1.25127e-06
  21  11.3363
  22  0.000777598
  23  4.00071
  24  12.9007
  25  16.8781
  26  6.49101
  27  8.80424e-05
  28  1.82929e-06
  29  31.1446
  30  2.24078e-05
  31  0.215046
  32  0.251682
Done.

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

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  1.793e+01  1.674e+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.486e+00  2.517e-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:  5.271e-01  2.150e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.55
Ra Dec: 209.928 40.215
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 3.32e-08 +/- 3.10e-08
Energy Flux (Fixed Index): 9.90e-06 +/- 9.24e-06

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

Saving results to:
/scratch/kocevski/98629/likelihoodResults_457315201_457574401_4FGL_J1359.7+4012_daily_bin841.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) = 6117.41392539
delta logL = 5.83695145906e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6117.4139247
delta logL = 6.52687140246e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    17.945       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3240       1.0000          .0000       5.0000    
     3 'Normalizat'    .52709       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4856       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=   6117.414     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      264 TOTAL
                     EDM=   .47E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          17.949        17.626        .94547E-04   -.48097E-06
   2  alpha         2.3242        .84180        .22248E-01    .12918E-05
   3  Normalizat    .52716        .19487        .30224E-03    .14369E-04
   4  Prefactor     1.4855        .24878        .24049E-03   -.13709E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 17.9493
  alpha      = 2.32422
  Normalizat = 0.527161
  Prefactor  = 1.48552
 **********
 **   18 **HESSE 
 **********

 FCN=   6117.414     FROM HESSE     STATUS=OK            25 CALLS      289 TOTAL
                     EDM=   .47E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          17.949        17.357        .37819E-05   -1.4860    
   2  alpha         2.3242        .82925        .88993E-03   -.70369E-01
   3  Normalizat    .52716        .19502        .12090E-04   -1.1117    
   4  Prefactor     1.4855        .24889        .96194E-05   -.77946    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.65302e-12
Minuit parameter uncertainties:
  1  17.3617
  2  0.845346
  3  0.195278
  4  0.249093
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/98629': 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) = 6117.41392452
delta logL = 6.70990266372e-06

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  1.795e+01  1.736e+01  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  2.324e+00  8.453e-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:  1.486e+00  2.491e-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:  5.272e-01  1.953e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.54
Ra Dec: 209.928 40.215
Photon Index (Free Index): 2.32 +/- 0.85
Photon Flux (Free Index): 3.32e-08 +/- 3.24e-08
Energy Flux (Free Index): 9.91e-06 +/- 9.58e-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/98629/cmap_HighResolution_457315201_457574401_4FGL_J1359.7+4012_daily_bin841.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.94e-05', comment='SUCCESS', photon_flux='3.32e-08', energy_flux2='9.91e-06', photon_flux_error='3.10e-08', dlogl='6.71e-06', energy_flux='9.90e-06', photon_flux2='3.32e-08', job_status='DONE', time_completed='2021-09-08 20:01:37.719876', photon_index_error2='0.85', photon_index2='2.32', ts='1.55', fit_tolerance='1e-08', GAL='1.49', photon_index_error='0.00', photon_flux_upper_limit='9.85e-08', energy_flux_error2='9.58e-06', EG='0.53', time_epoch_completed='1631156497.72', return_code='0', job_id='98629', GAL2='1.49', EG2='0.53', return_code2='0', energy_flux_error='9.24e-06', photon_flux_error2='3.24e-08', ts2='1.54', photon_index='2.33' WHERE bin_id='841' AND source_name='4FGL J1359.7+4012' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 20:01:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 98629: <4FGL_J1359.7+4012_daily_bin841> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.7+4012_daily_bin841 209.928 40.2153 457315201 457574401 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 :                                   952.34 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             327.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   974 sec.
    Turnaround time :                            976 sec.

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

