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


Performing analysis on: 4FGL_J1359.7+4012_daily_bin148
RA = 209.928, Dec = 40.2153
tmin = 277689601, tmax = 277948801
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='95578', job_status='RUN', time_executed='2021-09-08 19:35:55.143252', time_epoch_executed='1631154955.14' WHERE source_name='4FGL J1359.7+4012' and cadence='daily' and bin_id='148'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/95578

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/95578/ft1_4FGL_J1359.7+4012_daily_bin148.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/95578/ft2_4FGL_J1359.7+4012_daily_bin148.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/95578/ft1_4FGL_J1359.7+4012_daily_bin148.fits outfile=/scratch/kocevski/95578/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin148.fits ra=209.928 dec=40.2153 rad=12.0 tmin=277689601.0 tmax=277948801.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.71
user 3.36
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/95578/ft1_filtered_4FGL_J1359.7+4012_daily_bin148.fits" evtable="EVENTS" scfile=/scratch/kocevski/95578/ft2_4FGL_J1359.7+4012_daily_bin148.fits sctable="SC_DATA" outfile=/scratch/kocevski/95578/ltcube_277689601_277948801_4FGL_J1359.7+4012_daily_bin148.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/95578/ft2_4FGL_J1359.7+4012_daily_bin148.fits
.....................!
real 11.89
user 11.57
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/95578/ft1_filtered_4FGL_J1359.7+4012_daily_bin148.fits evtable="EVENTS" scfile=/scratch/kocevski/95578/ft2_4FGL_J1359.7+4012_daily_bin148.fits sctable="SC_DATA" expcube=/scratch/kocevski/95578/ltcube_277689601_277948801_4FGL_J1359.7+4012_daily_bin148.fits outfile=/scratch/kocevski/95578/expmap_277689601_277948801_4FGL_J1359.7+4012_daily_bin148.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/95578/ltcube_277689601_277948801_4FGL_J1359.7+4012_daily_bin148.fits
.....................!
real 189.39
user 184.96
sys 4.04

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/95578/ft1_filtered_4FGL_J1359.7+4012_daily_bin148.fits scfile=/scratch/kocevski/95578/ft2_4FGL_J1359.7+4012_daily_bin148.fits outfile=/scratch/kocevski/95578/cmap_277689601_277948801_4FGL_J1359.7+4012_daily_bin148.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.49
user 0.35
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/95578/ft1_filtered_4FGL_J1359.7+4012_daily_bin148.fits scfile=/scratch/kocevski/95578/ft2_4FGL_J1359.7+4012_daily_bin148.fits outfile=/scratch/kocevski/95578/cmap_HighResolution_277689601_277948801_4FGL_J1359.7+4012_daily_bin148.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.56
user 0.39
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/95578/ft1_filtered_4FGL_J1359.7+4012_daily_bin148.fits evtable="EVENTS" scfile=/scratch/kocevski/95578/ft2_4FGL_J1359.7+4012_daily_bin148.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/95578/Model_4FGL_J1359.7+4012_daily_bin148.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/95578/ft1_filtered_4FGL_J1359.7+4012_daily_bin148.fits.....................!
real 47.17
user 45.84
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    116.78       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .14428E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.6836       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.5133       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.9966       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.955       1.0000         .10000E-03   10000.    
    11 'norm      '    7.0576       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .54967       1.0000         .10000E-03   10000.    
    13 'norm      '    1.9643       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.2324       1.0000         .10000E-03   10000.    
    15 'norm      '    13.797       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10709       1.0000         .10000E-03   10000.    
    19 'Prefactor '    34.562       1.0000         .10000E-03   10000.    
    20 'norm      '    .92730       1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.0683       1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.122       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.4836       1.0000         .10000E-03   10000.    
    24 'norm      '    .10905E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    5.6309       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10604E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .87050       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0532       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=   5833.150     FROM MIGRAD    STATUS=CONVERGED    917 CALLS     4560 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     116.76        66.701       -.46658E-06    .62037E-04
   2  Prefactor     .10000E-03    50.659       -.14082E-04** at limit **
   3  norm          .10000E-03    2.5874       -.81312E-07** at limit **
   4  norm          .10000E-03    4.4592        .22378E-07** at limit **
   5  norm          5.6823        4.5066       -.44265E-07    .28661E-04
   6  Prefactor     .10000E-03    1.2353       -.56966E-07** at limit **
   7  Prefactor     1.5010        23.537       -.47840E-05    .81755E-04
   8  Prefactor     4.9905        20.831       -.10277E-05   -.12984E-04
   9  Prefactor     .10000E-03    18.582       -.46869E-07** at limit **
  10  Prefactor     20.934        24.926        .43580E-06   -.19413E-03
  11  norm          7.0566        4.2909       -.60279E-07    .22152E-04
  12  Prefactor     .18391E-03    116.70       -.12388E-04** at limit **
  13  norm          1.9643        1.2115       -.66848E-07   -.18204E-03
  14  Prefactor     1.2301        3.6625       -.27530E-06    .78811E-04
  15  norm          13.800        13.579       -.67193E-08    .74438E-04
  16  Prefactor     .10000E-03    10.442       -.65111E-06** at limit **
  17  Prefactor     .10000E-03    27.467       -.18687E-06** at limit **
  18  Prefactor     .10378        9.7571        .57482E-05   -.30320E-03
  19  Prefactor     34.551        21.302       -.15923E-06    .19232E-04
  20  norm          .92617        3.8719       -.11858E-05   -.51002E-04
  21  Prefactor     8.0768        20.277        .14190E-05   -.44127E-05
  22  Prefactor     12.119        16.161       -.45378E-06   -.66284E-04
  23  Prefactor     1.4829        2.5361        .63363E-07    .28565E-03
  24  norm          .10006E-03    64.532       -.49212E-05** at limit **
  25  Prefactor     .10000E-03    9.0896       -.16816E-06** at limit **
  26  norm          5.6277        7.0655       -.74991E-07   -.16367E-03
  27  Prefactor     .10000E-03    94.172       -.12183E-05** at limit **
  28  norm          .10000E-03    3.9125       -.10542E-06** at limit **
  29  Prefactor     .10000E-03    13.393       -.29996E-06** at limit **
  30  Prefactor     .10000E-03    3.0113       -.85455E-07** at limit **
  31  Normalizat    .87080        .16951        .24744E-05    .72548E-03
  32  Prefactor     1.0532        .19583       -.11789E-05    .47286E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 116.759
  Prefactor  = 0.000100004
  norm       = 0.0001
  norm       = 0.0001
  norm       = 5.68235
  Prefactor  = 0.0001
  Prefactor  = 1.50099
  Prefactor  = 4.99051
  Prefactor  = 0.0001
  Prefactor  = 20.9336
  norm       = 7.05662
  Prefactor  = 0.000183906
  norm       = 1.96433
  Prefactor  = 1.23015
  norm       = 13.8001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.103781
  Prefactor  = 34.551
  norm       = 0.926169
  Prefactor  = 8.07684
  Prefactor  = 12.119
  Prefactor  = 1.48286
  norm       = 0.000100056
  Prefactor  = 0.0001
  norm       = 5.6277
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.870797
  Prefactor  = 1.05324
 **********
 **   18 **HESSE 
 **********

 FCN=   5833.150     FROM HESSE     STATUS=OK           669 CALLS     5229 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     116.76        66.774        .37233E-04   -1.3543    
   2  Prefactor     .10000E-03    69.807        .46559E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.6239        .11980E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    4.4620        .15751E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.6823        4.5026        .13889E-03   -1.5231    
   6  Prefactor     .10000E-03    1.2654        .83038E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.5010        24.072        .17380E-02   -1.5463    
   8  Prefactor     4.9905        20.828        .17990E-03   -1.5261    
   9  Prefactor     .10000E-03    18.589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     20.934        24.986        .87498E-04   -1.4793    
  11  norm          7.0566        4.2906        .11947E-03   -1.5177    
  12  Prefactor     .18391E-03    82.198        .17298       -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.9643        1.2064        .63188E-04   -1.5428    
  14  Prefactor     1.2301        3.6481        .23946E-03   -1.5486    
  15  norm          13.800        13.571        .10784E-03   -1.4965    
  16  Prefactor     .10000E-03    10.504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    27.579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10378        24.839        .22655E-02   -1.5644    
  19  Prefactor     34.551        21.270        .68165E-04   -1.4532    
  20  norm          .92617        6.1141        .25900E-02   -1.5515    
  21  Prefactor     8.0768        20.040        .14115E-03   -1.5139    
  22  Prefactor     12.119        16.021        .11506E-03   -1.5012    
  23  Prefactor     1.4829        2.4938        .15247E-03   -1.5464    
  24  norm          .10006E-03    68.668        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    9.1075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          5.6277        7.0569        .16929E-03   -1.5233    
  27  Prefactor     .10000E-03    95.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    3.9268        .14755E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    13.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    3.0146        .12945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .87080        .20280        .22886E-03   -.97494    
  32  Prefactor     1.0532        .23385        .26034E-03   -.90975    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.29218e-08
Minuit parameter uncertainties:
  1  66.8172
  2  0.00101414
  3  2.44194e-06
  4  1.29042e-05
  5  4.50286
  6  9.97459e-06
  7  12.0274
  8  20.4023
  9  2.1438e-05
  10  24.9983
  11  4.29079
  12  0.166324
  13  1.2064
  14  3.64877
  15  13.5744
  16  0.000111242
  17  8.76975e-05
  18  3.21094
  19  21.2745
  20  4.75973
  21  20.0571
  22  16.0262
  23  2.49395
  24  0.00394348
  25  3.74016e-05
  26  7.05794
  27  0.000947592
  28  2.17357e-05
  29  0.000105052
  30  1.34784e-05
  31  0.202976
  32  0.234077
Done.

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

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  1.380e+01  1.357e+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.341e-01  0.000e+00  1.000e+01 ( 1.000e+00)
618        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
619        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
616   Normalization:  8.708e-01  2.030e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.54
Ra Dec: 209.928 40.215
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 2.55e-08 +/- 2.51e-08
Energy Flux (Fixed Index): 7.62e-06 +/- 7.49e-06

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

Saving results to:
/scratch/kocevski/95578/likelihoodResults_277689601_277948801_4FGL_J1359.7+4012_daily_bin148.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) = 5833.08309752
delta logL = 0.0669952924081

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5833.07752173
delta logL = 0.07257108666

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.537       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7471       1.0000          .0000       5.0000    
     3 'Normalizat'    .85988       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0630       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=   5833.078     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      278 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.546        14.099        .56565E-03   -.54346E-04
   2  alpha         2.7481        1.1673        .26686E-01    .73909E-04
   3  Normalizat    .86004        .18738        .23015E-03    .25045E-04
   4  Prefactor     1.0628        .23074        .25931E-03    .60063E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 12.5459
  alpha      = 2.74805
  Normalizat = 0.860039
  Prefactor  = 1.06283
 **********
 **   18 **HESSE 
 **********

 FCN=   5833.078     FROM HESSE     STATUS=OK            25 CALLS      303 TOTAL
                     EDM=   .70E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.546        13.584        .22626E-04   -1.4999    
   2  alpha         2.7481        1.1272        .53372E-02    .99384E-01
   3  Normalizat    .86004        .18750        .92059E-05   -.97879    
   4  Prefactor     1.0628        .23084        .10373E-04   -.90663    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.95959e-12
Minuit parameter uncertainties:
  1  13.5869
  2  1.16988
  3  0.187645
  4  0.231057
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/95578': 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) = 5833.07752003
delta logL = 0.0725727810013

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  1.255e+01  1.359e+01  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  2.748e+00  1.170e+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.063e+00  2.311e-01  0.000e+00  1.000e+01 ( 1.000e+00)
618        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
619        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
616   Normalization:  8.600e-01  1.876e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.68
Ra Dec: 209.928 40.215
Photon Index (Free Index): 2.75 +/- 1.17
Photon Flux (Free Index): 3.22e-08 +/- 3.35e-08
Energy Flux (Free Index): 7.51e-06 +/- 7.11e-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/95578/cmap_HighResolution_277689601_277948801_4FGL_J1359.7+4012_daily_bin148.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.48e-05', comment='SUCCESS', photon_flux='2.55e-08', energy_flux2='7.51e-06', photon_flux_error='2.51e-08', dlogl='7.26e-02', energy_flux='7.62e-06', photon_flux2='3.22e-08', job_status='DONE', time_completed='2021-09-08 19:51:36.365669', photon_index_error2='1.17', photon_index2='2.75', ts='1.54', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='8.31e-08', energy_flux_error2='7.11e-06', EG='0.87', time_epoch_completed='1631155896.37', return_code='0', job_id='95578', GAL2='1.06', EG2='0.86', return_code2='0', energy_flux_error='7.49e-06', photon_flux_error2='3.35e-08', ts2='1.68', photon_index='2.33' WHERE bin_id='148' AND source_name='4FGL J1359.7+4012' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 19:51:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0022>
Subject: Job 95578: <4FGL_J1359.7+4012_daily_bin148> in cluster <slac> Done

Job <4FGL_J1359.7+4012_daily_bin148> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 19:35:44 2021
Job was executed on host(s) <bullet0022>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 19:35:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 19:35:46 2021
Terminated at Wed Sep  8 19:51:37 2021
Results reported at Wed Sep  8 19:51:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.7+4012_daily_bin148 209.928 40.2153 277689601 277948801 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 :                                   936.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             335.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   950 sec.
    Turnaround time :                            953 sec.

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

