/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 68 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 = 7278
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1359.7+4012_daily_bin203
RA = 209.928, Dec = 40.2153
tmin = 291945601, tmax = 292204801
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='95668', job_status='RUN', time_executed='2021-09-08 19:37:17.133783', time_epoch_executed='1631155037.13' WHERE source_name='4FGL J1359.7+4012' and cadence='daily' and bin_id='203'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/95668

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/95668/ft1_4FGL_J1359.7+4012_daily_bin203.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/95668/ft2_4FGL_J1359.7+4012_daily_bin203.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/95668/ft1_4FGL_J1359.7+4012_daily_bin203.fits outfile=/scratch/kocevski/95668/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin203.fits ra=209.928 dec=40.2153 rad=12.0 tmin=291945601.0 tmax=292204801.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.77
user 3.54
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/95668/ft1_filtered_4FGL_J1359.7+4012_daily_bin203.fits" evtable="EVENTS" scfile=/scratch/kocevski/95668/ft2_4FGL_J1359.7+4012_daily_bin203.fits sctable="SC_DATA" outfile=/scratch/kocevski/95668/ltcube_291945601_292204801_4FGL_J1359.7+4012_daily_bin203.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/95668/ft2_4FGL_J1359.7+4012_daily_bin203.fits
.....................!
real 11.75
user 11.39
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/95668/ft1_filtered_4FGL_J1359.7+4012_daily_bin203.fits evtable="EVENTS" scfile=/scratch/kocevski/95668/ft2_4FGL_J1359.7+4012_daily_bin203.fits sctable="SC_DATA" expcube=/scratch/kocevski/95668/ltcube_291945601_292204801_4FGL_J1359.7+4012_daily_bin203.fits outfile=/scratch/kocevski/95668/expmap_291945601_292204801_4FGL_J1359.7+4012_daily_bin203.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/95668/ltcube_291945601_292204801_4FGL_J1359.7+4012_daily_bin203.fits
.....................!
real 190.90
user 185.33
sys 5.21

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/95668/ft1_filtered_4FGL_J1359.7+4012_daily_bin203.fits scfile=/scratch/kocevski/95668/ft2_4FGL_J1359.7+4012_daily_bin203.fits outfile=/scratch/kocevski/95668/cmap_291945601_292204801_4FGL_J1359.7+4012_daily_bin203.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/95668/ft1_filtered_4FGL_J1359.7+4012_daily_bin203.fits scfile=/scratch/kocevski/95668/ft2_4FGL_J1359.7+4012_daily_bin203.fits outfile=/scratch/kocevski/95668/cmap_HighResolution_291945601_292204801_4FGL_J1359.7+4012_daily_bin203.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=209.928 yref=40.2153 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .99624       1.0000         .10000E-03   10000.    
     4 'norm      '    26.848       1.0000         .10000E-03   10000.    
     5 'norm      '    17.960       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.5977       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10740E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10197E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    79.432       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.744       1.0000         .10000E-03   10000.    
    11 'norm      '    2.7470       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10103E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.5368       1.0000         .10000E-03   10000.    
    15 'norm      '    5.7616       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .34632E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .14339E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    3.2567       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.8248       1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.168       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.6643       1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    30.313       1.0000         .10000E-03   10000.    
    26 'norm      '    6.9360       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    15.842       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .92961       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .98749       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=   5528.783     FROM MIGRAD    STATUS=CONVERGED    828 CALLS     4314 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.225       -.15199E-06** at limit **
   2  Prefactor     .10000E-03    10.032       -.83489E-06** at limit **
   3  norm          .99914        3.3951        .46132E-06    .41830E-04
   4  norm          26.849        15.342        .10087E-06    .53731E-05
   5  norm          17.961        6.3041       -.43990E-07    .53748E-04
   6  Prefactor     3.5969        3.6636        .20018E-06   -.13178E-03
   7  Prefactor     .10000E-03    34.639        .99929E-06** at limit **
   8  Prefactor     .10000E-03    27.372       -.14006E-05** at limit **
   9  Prefactor     79.442        63.412       -.91385E-06   -.21008E-04
  10  Prefactor     11.747        27.852       -.12170E-05    .16963E-04
  11  norm          2.7461        5.1857        .43566E-05    .17171E-04
  12  Prefactor     .10000E-03    17.807        .15121E-05** at limit **
  13  norm          .10000E-03    1.0317        .36008E-06** at limit **
  14  Prefactor     3.5374        3.5953        .21412E-06   -.15824E-04
  15  norm          5.7640        17.390        .80268E-06   -.12709E-04
  16  Prefactor     .10000E-03    12.068        .11872E-06** at limit **
  17  Prefactor     .10001E-03    165.12        .11134E-04** at limit **
  18  Prefactor     .10000E-03    3.7250       -.10840E-05** at limit **
  19  Prefactor     .10000E-03    6.8335        .36627E-06** at limit **
  20  norm          3.2568        3.1271        .33168E-07    .87706E-05
  21  Prefactor     9.8257        13.450        .11050E-06    .12982E-04
  22  Prefactor     10.168        17.209        .31203E-06    .86124E-05
  23  Prefactor     3.6654        4.4810        .30752E-06   -.32884E-05
  24  norm          .10000E-03    5.9294       -.59303E-06** at limit **
  25  Prefactor     30.315        25.432        .48768E-07   -.82107E-05
  26  norm          6.9371        6.9065        .10449E-05    .29083E-04
  27  Prefactor     .10000E-03    23.169       -.80417E-06** at limit **
  28  norm          15.843        10.289       -.60040E-07    .16099E-05
  29  Prefactor     .10000E-03    5.1382        .86353E-07** at limit **
  30  Prefactor     .10000E-03    3.6611       -.42290E-08** at limit **
  31  Normalizat    .92957        .17996       -.20907E-05   -.22137E-03
  32  Prefactor     .98738        .20886        .42660E-06   -.19521E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.999139
  norm       = 26.8492
  norm       = 17.9611
  Prefactor  = 3.5969
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 79.4417
  Prefactor  = 11.7469
  norm       = 2.74605
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.53738
  norm       = 5.76396
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.25679
  Prefactor  = 9.82571
  Prefactor  = 10.1678
  Prefactor  = 3.66542
  norm       = 0.0001
  Prefactor  = 30.3154
  norm       = 6.93706
  Prefactor  = 0.0001
  norm       = 15.8428
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.929568
  Prefactor  = 0.98738
 **********
 **   18 **HESSE 
 **********

 FCN=   5528.783     FROM HESSE     STATUS=OK           659 CALLS     4973 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    33.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .99914        3.3911        .24030E-03   -1.5508    
   4  norm          26.849        15.341        .77315E-04   -1.4671    
   5  norm          17.961        6.3037        .94507E-04   -1.4860    
   6  Prefactor     3.5969        3.6033        .13135E-03   -1.5329    
   7  Prefactor     .10000E-03    35.226        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    27.421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     79.442        63.331        .45061E-04   -1.3923    
  10  Prefactor     11.747        27.754        .11690E-03   -1.5022    
  11  norm          2.7461        5.2104        .11058E-02   -1.5377    
  12  Prefactor     .10000E-03    17.835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.0659        .14359E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.5374        3.5925        .13719E-03   -1.5332    
  15  norm          5.7640        17.439        .16733E-03   -1.5228    
  16  Prefactor     .10000E-03    12.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    166.98        .42656E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.8927        .27313E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.8472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          3.2568        3.1257        .12412E-03   -1.5347    
  21  Prefactor     9.8257        13.399        .12784E-03   -1.5081    
  22  Prefactor     10.168        17.149        .12566E-03   -1.5070    
  23  Prefactor     3.6654        4.4661        .16425E-03   -1.5325    
  24  norm          .10000E-03    5.9363        .17686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     30.315        25.463        .72772E-04   -1.4606    
  26  norm          6.9371        6.9018        .76167E-03   -1.5181    
  27  Prefactor     .10000E-03    23.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          15.843        10.289        .10063E-03   -1.4912    
  29  Prefactor     .10000E-03    5.1401        .16461E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    3.6699        .13894E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .92957        .21257        .22983E-03   -.95429    
  32  Prefactor     .98738        .24716        .27360E-03   -.93151    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07907e-10
Minuit parameter uncertainties:
  1  5.5439e-06
  2  1.54855e-05
  3  3.39179
  4  15.3433
  5  6.30392
  6  3.60353
  7  2.17889e-05
  8  9.52466e-05
  9  63.3848
  10  27.7846
  11  5.21122
  12  1.44913e-05
  13  1.61096e-05
  14  3.59273
  15  17.454
  16  2.9434e-07
  17  0.00285556
  18  7.2988e-05
  19  4.81839e-06
  20  3.12589
  21  13.4029
  22  17.1574
  23  4.46654
  24  3.50246e-06
  25  25.4718
  26  6.90255
  27  1.66288e-05
  28  10.2905
  29  5.96393e-07
  30  1.11584e-07
  31  0.212764
  32  0.247439
Done.

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

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  5.764e+00  1.745e+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.874e-01  2.474e-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:  9.296e-01  2.128e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/95668/likelihoodResults_291945601_292204801_4FGL_J1359.7+4012_daily_bin203.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) = 5527.04165629
delta logL = 1.74097782885

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5527.03383723
delta logL = 1.7487968934

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.6394       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.6531       1.0000          .0000       5.0000    
     3 'Normalizat'    .81519       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0784       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=   5527.034     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      275 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.6481        14.115        .46507E-03   -.22741E-03
   2  alpha         4.6517        4.5646        .34409E-01   -.10129E-04
   3  Normalizat    .81514        .20991        .24353E-03   -.23761E-04
   4  Prefactor     1.0784        .25174        .26322E-03   -.13432E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.64813
  alpha      = 4.65168
  Normalizat = 0.815135
  Prefactor  = 1.07836
 **********
 **   18 **HESSE 
 **********

 FCN=   5527.034     FROM HESSE     STATUS=OK            25 CALLS      300 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.6481        8.0578        .18603E-04   -1.5277    
   2  alpha         4.6517        3.6710        .13764E-02    1.0366    
   3  Normalizat    .81514        .21021        .97413E-05   -.99510    
   4  Prefactor     1.0784        .25224        .10529E-04   -.90161    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07046e-11
Minuit parameter uncertainties:
  1  8.05967
  2  1.41645
  3  0.210424
  4  0.252517
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/95668': 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) = 5527.03383652
delta logL = 1.74879759932

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  4.648e+00  8.060e+00  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  4.652e+00  1.416e+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.078e+00  2.525e-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.151e-01  2.104e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.92
Ra Dec: 209.928 40.215
Photon Index (Free Index): 4.65 +/- 1.42
Photon Flux (Free Index): 8.71e-08 +/- 5.49e-08
Energy Flux (Free Index): 1.26e-05 +/- 8.07e-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/95668/cmap_HighResolution_291945601_292204801_4FGL_J1359.7+4012_daily_bin203.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.53e-05', comment='SUCCESS', energy_flux2='1.26e-05', dlogl='1.75e+00', photon_flux2='8.71e-08', job_status='DONE', time_completed='2021-09-08 19:52:09.228524', photon_index_error2='1.42', photon_index2='4.65', ts='0.13', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='8.49e-08', energy_flux_error2='8.07e-06', EG='0.93', time_epoch_completed='1631155929.23', return_code='0', job_id='95668', GAL2='1.08', EG2='0.82', return_code2='0', photon_flux_error2='5.49e-08', ts2='3.92', photon_index='2.33' WHERE bin_id='203' AND source_name='4FGL J1359.7+4012' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 19:52:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 95668: <4FGL_J1359.7+4012_daily_bin203> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.7+4012_daily_bin203 209.928 40.2153 291945601 292204801 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 :                                   871.23 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             318.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   974 sec.
    Turnaround time :                            975 sec.

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

