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


Performing analysis on: 4FGL_J1359.7+4012_daily_bin182
RA = 209.928, Dec = 40.2153
tmin = 286502401, tmax = 286761601
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='95634', job_status='RUN', time_executed='2021-09-08 19:36:12.261178', time_epoch_executed='1631154972.26' WHERE source_name='4FGL J1359.7+4012' and cadence='daily' and bin_id='182'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/95634

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/95634/ft1_4FGL_J1359.7+4012_daily_bin182.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/95634/ft2_4FGL_J1359.7+4012_daily_bin182.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/95634/ft1_4FGL_J1359.7+4012_daily_bin182.fits outfile=/scratch/kocevski/95634/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin182.fits ra=209.928 dec=40.2153 rad=12.0 tmin=286502401.0 tmax=286761601.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.52
user 4.26
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/95634/ft1_filtered_4FGL_J1359.7+4012_daily_bin182.fits" evtable="EVENTS" scfile=/scratch/kocevski/95634/ft2_4FGL_J1359.7+4012_daily_bin182.fits sctable="SC_DATA" outfile=/scratch/kocevski/95634/ltcube_286502401_286761601_4FGL_J1359.7+4012_daily_bin182.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/95634/ft2_4FGL_J1359.7+4012_daily_bin182.fits
.....................!
real 12.27
user 11.91
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/95634/ft1_filtered_4FGL_J1359.7+4012_daily_bin182.fits evtable="EVENTS" scfile=/scratch/kocevski/95634/ft2_4FGL_J1359.7+4012_daily_bin182.fits sctable="SC_DATA" expcube=/scratch/kocevski/95634/ltcube_286502401_286761601_4FGL_J1359.7+4012_daily_bin182.fits outfile=/scratch/kocevski/95634/expmap_286502401_286761601_4FGL_J1359.7+4012_daily_bin182.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/95634/ltcube_286502401_286761601_4FGL_J1359.7+4012_daily_bin182.fits
.....................!
real 190.41
user 185.09
sys 4.95

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/95634/ft1_filtered_4FGL_J1359.7+4012_daily_bin182.fits scfile=/scratch/kocevski/95634/ft2_4FGL_J1359.7+4012_daily_bin182.fits outfile=/scratch/kocevski/95634/cmap_286502401_286761601_4FGL_J1359.7+4012_daily_bin182.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/95634/ft1_filtered_4FGL_J1359.7+4012_daily_bin182.fits scfile=/scratch/kocevski/95634/ft2_4FGL_J1359.7+4012_daily_bin182.fits outfile=/scratch/kocevski/95634/cmap_HighResolution_286502401_286761601_4FGL_J1359.7+4012_daily_bin182.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=209.928 yref=40.2153 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20520E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10341E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10140E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10398E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    7.8480       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12766E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.7659       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.0605       1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    33.984       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10779E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    34.431       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.9150       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .29444       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10253E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    21.234       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10201E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10441E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    7.3432       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10205E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    8.2229       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0485       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .94727       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=   6079.549     FROM MIGRAD    STATUS=CONVERGED   1553 CALLS     5113 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10005E-03    44.819        .16256    ** at limit **
   2  Prefactor     .10000E-03    13.532        .18142E-02** at limit **
   3  norm          .10000E-03    4.4472        .15887E-02** at limit **
   4  norm          .10000E-03    14.082        .18142E-02** at limit **
   5  norm          7.8508        5.1362        .13823E-03   -.16284E-04
   6  Prefactor     .10000E-03    1.4520        .90833E-03** at limit **
   7  Prefactor     .10000E-03    3.2113        .13639E-02** at limit **
   8  Prefactor     .10000E-03    35.483        .18142E-02** at limit **
   9  Prefactor     .10000E-03    32.160        .18142E-02** at limit **
  10  Prefactor     .10000E-03    60.811        .36285E-03** at limit **
  11  norm          5.7664        4.0328        .12710E-03    .35421E-04
  12  Prefactor     8.0886        134.61        .14122E-03   -.65207E-05
  13  norm          .10000E-03    1.1402        .10937E-02** at limit **
  14  Prefactor     .10001E-03    4.8683        .21979E-02** at limit **
  15  norm          33.983        15.377        .68740E-04    .81073E-04
  16  Prefactor     .10000E-03    29.806        .18142E-02** at limit **
  17  Prefactor     34.443        39.769        .68294E-04   -.94387E-04
  18  Prefactor     5.9155        4.6813        .14060E-03   -.23773E-04
  19  Prefactor     .10000E-03    6.2114        .18142E-02** at limit **
  20  norm          .29324        3.8646        .28934E-02    .46110E-03
  21  Prefactor     .10000E-03    25.316        .36285E-03** at limit **
  22  Prefactor     21.241        17.498        .86922E-04    .11222E-03
  23  Prefactor     .10000E-03    1.1183        .80256E-03** at limit **
  24  norm          .10000E-03    7.9335        .18142E-02** at limit **
  25  Prefactor     .10000E-03    15.088        .18142E-02** at limit **
  26  norm          .10000E-03    6.7022        .18142E-02** at limit **
  27  Prefactor     .10000E-03    12.593        .18142E-02** at limit **
  28  norm          7.3419        6.6035        .14801E-03    .94476E-05
  29  Prefactor     .10000E-03    6.3094        .18142E-02** at limit **
  30  Prefactor     8.2213        7.5583        .13981E-03    .20979E-04
  31  Normalizat    1.0482        .19089        .21232E-03    .42393E-03
  32  Prefactor     .94724        .22269        .27258E-03    .46990E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100045
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 7.85085
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.76642
  Prefactor  = 8.08855
  norm       = 0.0001
  Prefactor  = 0.000100006
  norm       = 33.9829
  Prefactor  = 0.0001
  Prefactor  = 34.4434
  Prefactor  = 5.91552
  Prefactor  = 0.0001
  norm       = 0.293238
  Prefactor  = 0.000100003
  Prefactor  = 21.2407
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 7.34192
  Prefactor  = 0.0001
  Prefactor  = 8.22128
  Normalizat = 1.04824
  Prefactor  = 0.947243
 **********
 **   18 **HESSE 
 **********

 FCN=   6079.549     FROM HESSE     STATUS=OK           637 CALLS     5750 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10005E-03    45.256        .16129       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.536        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    4.4500        .31773E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    14.090        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.8508        5.1360        .55292E-05   -1.5148    
   6  Prefactor     .10000E-03    1.4523        .18167E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.2114        .27277E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    35.489        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    32.162        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    60.814        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.7664        4.0327        .50840E-05   -1.5228    
  12  Prefactor     8.0886        134.63        .56488E-05   -1.5139    
  13  norm          .10000E-03    1.1455        .21875E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    4.8970        .43958E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          33.983        15.376        .13748E-04   -1.4541    
  16  Prefactor     .10000E-03    29.830        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     34.443        39.766        .13659E-04   -1.4534    
  18  Prefactor     5.9155        4.6811        .56238E-05   -1.5221    
  19  Prefactor     .10000E-03    6.2119        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .29324        3.8647        .11574E-03   -1.5600    
  21  Prefactor     .10000E-03    25.317        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     21.241        17.492        .34769E-05   -1.4786    
  23  Prefactor     .10000E-03    1.1183        .16051E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    7.9342        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    15.090        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    6.7078        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    12.593        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          7.3419        6.6034        .59204E-05   -1.5166    
  29  Prefactor     .10000E-03    6.3096        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     8.2213        7.5582        .55924E-05   -1.5134    
  31  Normalizat    1.0482        .19105        .42465E-04   -.91431    
  32  Prefactor     .94724        .22283        .54516E-04   -.94509    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90928e-09
Minuit parameter uncertainties:
  1  0.00286314
  2  9.54034e-05
  3  1.90873e-05
  4  5.36912e-05
  5  5.13633
  6  8.67835e-06
  7  4.82118e-06
  8  0.000327941
  9  3.98962e-05
  10  0.000286338
  11  4.03293
  12  66.1751
  13  3.21502e-06
  14  0.000347425
  15  15.3783
  16  1.95039e-05
  17  39.7967
  18  4.68135
  19  2.24959e-05
  20  2.12891
  21  0.000578661
  22  17.4958
  23  7.93278e-06
  24  5.24857e-05
  25  6.93969e-06
  26  4.42316e-05
  27  1.88663e-05
  28  6.60408
  29  2.20697e-05
  30  7.55904
  31  0.191176
  32  0.223048
Done.

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

Extracting fit parameters...

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

EG_v02
   Spectrum: FileFunction
616   Normalization:  1.048e+00  1.912e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.77
Ra Dec: 209.928 40.215
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 6.29e-08 +/- 2.85e-08
Energy Flux (Fixed Index): 1.88e-05 +/- 8.49e-06

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) = 6078.5708476
delta logL = 0.977933039137

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6078.52897559
delta logL = 1.01980505458

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    29.436       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5479       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0822       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92152       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6078.529     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      210 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          29.413        14.445        .18461E-02    .20399E-03
   2  alpha         1.5477        .43461        .33573       -.85822E-04
   3  Normalizat    1.0823        .15399        .38773E-01   -.47563E-03
   4  Prefactor     .92140        .18924        .45279E-01   -.44291E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 29.4132
  alpha      = 1.54766
  Normalizat = 1.0823
  Prefactor  = 0.921398
 **********
 **   18 **HESSE 
 **********

 FCN=   6078.529     FROM HESSE     STATUS=OK            27 CALLS      237 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          29.413        16.905        .73845E-04   -1.4623    
   2  alpha         1.5477        .53086        .14170E-01   -.39081    
   3  Normalizat    1.0823        .17890        .20943E-03   -.90322    
   4  Prefactor     .92140        .21943        .27600E-03   -.95397    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.42969e-10
Minuit parameter uncertainties:
  1  16.9077
  2  0.535643
  3  0.179002
  4  0.219643
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/95634': 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) = 6078.52897434
delta logL = 1.01980630224

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  2.941e+01  1.691e+01  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  1.548e+00  5.356e-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.214e-01  2.196e-01  0.000e+00  1.000e+01 ( 1.000e+00)
618        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
619        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
616   Normalization:  1.082e+00  1.790e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.85
Ra Dec: 209.928 40.215
Photon Index (Free Index): 1.55 +/- 0.54
Photon Flux (Free Index): 3.76e-08 +/- 2.41e-08
Energy Flux (Free Index): 2.33e-05 +/- 1.25e-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/95634/cmap_HighResolution_286502401_286761601_4FGL_J1359.7+4012_daily_bin182.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.29e-08', energy_flux2='2.33e-05', photon_flux_error='2.85e-08', dlogl='1.02e+00', energy_flux='1.88e-05', photon_flux2='3.76e-08', job_status='DONE', time_completed='2021-09-08 19:50:59.053269', photon_index_error2='0.54', photon_index2='1.55', ts='14.77', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='1.25e-05', EG='1.05', time_epoch_completed='1631155859.05', return_code='0', job_id='95634', GAL2='0.92', EG2='1.08', return_code2='0', energy_flux_error='8.49e-06', photon_flux_error2='2.41e-08', ts2='16.85', photon_index='2.33' WHERE bin_id='182' AND source_name='4FGL J1359.7+4012' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 19:50:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 95634: <4FGL_J1359.7+4012_daily_bin182> in cluster <slac> Done

Job <4FGL_J1359.7+4012_daily_bin182> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 19:35:50 2021
Job was executed on host(s) <bullet0235>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 19:35:52 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:52 2021
Terminated at Wed Sep  8 19:50:59 2021
Results reported at Wed Sep  8 19:50:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.7+4012_daily_bin182 209.928 40.2153 286502401 286761601 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 :                                   877.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             322.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   907 sec.
    Turnaround time :                            909 sec.

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

