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


Performing analysis on: 4FGL_J1359.7+4012_daily_bin367
RA = 209.928, Dec = 40.2153
tmin = 334454401, tmax = 334713601
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='95940', job_status='RUN', time_executed='2021-09-08 19:36:32.939390', time_epoch_executed='1631154992.94' WHERE source_name='4FGL J1359.7+4012' and cadence='daily' and bin_id='367'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/95940

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/95940/ft1_4FGL_J1359.7+4012_daily_bin367.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/95940/ft2_4FGL_J1359.7+4012_daily_bin367.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/95940/ft1_4FGL_J1359.7+4012_daily_bin367.fits outfile=/scratch/kocevski/95940/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin367.fits ra=209.928 dec=40.2153 rad=12.0 tmin=334454401.0 tmax=334713601.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.48
user 3.26
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/95940/ft1_filtered_4FGL_J1359.7+4012_daily_bin367.fits" evtable="EVENTS" scfile=/scratch/kocevski/95940/ft2_4FGL_J1359.7+4012_daily_bin367.fits sctable="SC_DATA" outfile=/scratch/kocevski/95940/ltcube_334454401_334713601_4FGL_J1359.7+4012_daily_bin367.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/95940/ft2_4FGL_J1359.7+4012_daily_bin367.fits
.....................!
real 11.76
user 11.42
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/95940/ft1_filtered_4FGL_J1359.7+4012_daily_bin367.fits evtable="EVENTS" scfile=/scratch/kocevski/95940/ft2_4FGL_J1359.7+4012_daily_bin367.fits sctable="SC_DATA" expcube=/scratch/kocevski/95940/ltcube_334454401_334713601_4FGL_J1359.7+4012_daily_bin367.fits outfile=/scratch/kocevski/95940/expmap_334454401_334713601_4FGL_J1359.7+4012_daily_bin367.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/95940/ltcube_334454401_334713601_4FGL_J1359.7+4012_daily_bin367.fits
.....................!
real 189.49
user 184.98
sys 4.14

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/95940/ft1_filtered_4FGL_J1359.7+4012_daily_bin367.fits scfile=/scratch/kocevski/95940/ft2_4FGL_J1359.7+4012_daily_bin367.fits outfile=/scratch/kocevski/95940/cmap_334454401_334713601_4FGL_J1359.7+4012_daily_bin367.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.55
user 0.37
sys 0.15

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

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/95940/ft1_filtered_4FGL_J1359.7+4012_daily_bin367.fits evtable="EVENTS" scfile=/scratch/kocevski/95940/ft2_4FGL_J1359.7+4012_daily_bin367.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/95940/Model_4FGL_J1359.7+4012_daily_bin367.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/95940/ft1_filtered_4FGL_J1359.7+4012_daily_bin367.fits.....................!
real 46.07
user 44.71
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.868       1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.2654       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.1459       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    64.067       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.210       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    7.0252       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    24.737       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    22.219       1.0000         .10000E-03   10000.    
    20 'norm      '    5.2376       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .43787       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    10.328       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    14.625       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .82816       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.2287       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=   5808.325     FROM MIGRAD    STATUS=CONVERGED    814 CALLS     5264 TOTAL
                     EDM=   .14E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.648        .12700E-05** at limit **
   2  Prefactor     10.872        19.188       -.44375E-06   -.31812E-04
   3  norm          .10000E-03    4.5732        .39655E-06** at limit **
   4  norm          .10000E-03    8.3619        .35290E-06** at limit **
   5  norm          .10000E-03    4.4436        .18833E-06** at limit **
   6  Prefactor     4.2684        5.1031        .10886E-05   -.54887E-04
   7  Prefactor     2.1331        60.502        .18323E-06    .51987E-05
   8  Prefactor     .10000E-03    22.963       -.16923E-05** at limit **
   9  Prefactor     64.075        76.917       -.27038E-05   -.17336E-04
  10  Prefactor     13.193        38.733        .33039E-05   -.99759E-05
  11  norm          .10000E-03    2.2309       -.10982E-06** at limit **
  12  Prefactor     .10000E-03    56.085       -.69892E-06** at limit **
  13  norm          7.0252        2.1799       -.34215E-07   -.43816E-04
  14  Prefactor     .10000E-03    2.5601        .20055E-07** at limit **
  15  norm          24.737        18.684        .16234E-06   -.90236E-06
  16  Prefactor     .10000E-03    5.4253       -.56958E-06** at limit **
  17  Prefactor     .10000E-03    58.841        .15112E-05** at limit **
  18  Prefactor     .10000E-03    1.6227        .81712E-09** at limit **
  19  Prefactor     22.218        23.507        .19098E-06   -.84982E-05
  20  norm          5.2378        3.9695        .50328E-07   -.10983E-04
  21  Prefactor     .10000E-03    5.0448       -.11818E-06** at limit **
  22  Prefactor     .10000E-03    7.0493        .39909E-06** at limit **
  23  Prefactor     .43804        3.6515        .98816E-06    .25855E-04
  24  norm          .10000E-03    4.0802       -.37172E-06** at limit **
  25  Prefactor     .10000E-03    10.389       -.94196E-06** at limit **
  26  norm          10.328        6.3467        .44547E-07   -.64718E-05
  27  Prefactor     .10000E-03    13.989        .10476E-06** at limit **
  28  norm          .10000E-03    2.5426        .14177E-07** at limit **
  29  Prefactor     14.626        18.400        .10348E-06   -.44340E-05
  30  Prefactor     .10000E-03    3.5114        .81201E-07** at limit **
  31  Normalizat    .82818        .18798       -.39943E-06   -.62846E-04
  32  Prefactor     1.2287        .21507       -.40809E-06   -.72154E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 10.8717
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 4.26841
  Prefactor  = 2.13306
  Prefactor  = 0.0001
  Prefactor  = 64.0753
  Prefactor  = 13.1932
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 7.02521
  Prefactor  = 0.0001
  norm       = 24.7372
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.2183
  norm       = 5.23779
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.438036
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 10.328
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.6257
  Prefactor  = 0.0001
  Normalizat = 0.828182
  Prefactor  = 1.22868
 **********
 **   18 **HESSE 
 **********

 FCN=   5808.325     FROM HESSE     STATUS=OK           651 CALLS     5915 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.872        19.153        .12153E-03   -1.5048    
   3  norm          .10000E-03    4.6600        .15875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    8.3818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.5664        .31304E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.2684        5.1263        .72303E-03   -1.5295    
   7  Prefactor     2.1331        59.986        .28132E-03   -1.5416    
   8  Prefactor     .10000E-03    23.143        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     64.075        76.667        .50136E-04   -1.4105    
  10  Prefactor     13.193        38.798        .11021E-03   -1.4981    
  11  norm          .10000E-03    2.2476        .11116E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    56.130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.0252        2.1787        .58435E-04   -1.5178    
  14  Prefactor     .10000E-03    2.5997        .11902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          24.737        18.717        .80541E-04   -1.4713    
  16  Prefactor     .10000E-03    5.4172        .17321E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    59.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.6248        .94784E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     22.218        23.670        .84975E-04   -1.4765    
  20  norm          5.2378        3.9651        .12738E-03   -1.5250    
  21  Prefactor     .10000E-03    5.0565        .16714E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.0742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .43804        3.7386        .27705E-03   -1.5576    
  24  norm          .10000E-03    4.0768        .15027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    10.366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          10.328        6.3481        .12468E-03   -1.5065    
  27  Prefactor     .10000E-03    13.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    2.5431        .11868E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     14.626        18.404        .10473E-03   -1.4943    
  30  Prefactor     .10000E-03    3.5196        .13947E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .82818        .22804        .25998E-03   -.99032    
  32  Prefactor     1.2287        .26100        .26350E-03   -.85453    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.3827e-11
Minuit parameter uncertainties:
  1  2.75116e-05
  2  19.1638
  3  4.27565e-06
  4  3.43486e-06
  5  1.56362e-05
  6  5.12684
  7  22.648
  8  3.80628e-05
  9  76.7859
  10  38.8719
  11  3.90118e-06
  12  5.86687e-05
  13  2.17868
  14  2.99697e-06
  15  18.7215
  16  7.92906e-06
  17  5.5746e-05
  18  1.16829e-07
  19  23.6797
  20  3.96527
  21  3.59843e-06
  22  2.02742e-06
  23  2.55933
  24  4.47759e-06
  25  2.13065e-05
  26  6.34855
  27  2.85621e-07
  28  1.9088e-08
  29  18.4115
  30  3.75032e-08
  31  0.228304
  32  0.261271
Done.

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

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  2.474e+01  1.872e+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.229e+00  2.613e-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.282e-01  2.283e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.66
Ra Dec: 209.928 40.215
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 4.58e-08 +/- 3.46e-08
Energy Flux (Fixed Index): 1.37e-05 +/- 1.03e-05

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

Saving results to:
/scratch/kocevski/95940/likelihoodResults_334454401_334713601_4FGL_J1359.7+4012_daily_bin367.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) = 5808.04066905
delta logL = 0.284308744274

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5808.03362769
delta logL = 0.291350112618

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    24.392       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8973       1.0000          .0000       5.0000    
     3 'Normalizat'    .79545       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2534       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=   5808.034     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      278 TOTAL
                     EDM=   .90E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          24.394        17.579        .81107E-04    .25651E-04
   2  alpha         2.8971        .74242        .17774E-01    .10071E-03
   3  Normalizat    .79564        .21812        .26458E-03    .40433E-04
   4  Prefactor     1.2532        .25990        .26120E-03   -.39346E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 24.3938
  alpha      = 2.89714
  Normalizat = 0.795637
  Prefactor  = 1.25319
 **********
 **   18 **HESSE 
 **********

 FCN=   5808.034     FROM HESSE     STATUS=OK            25 CALLS      303 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          24.394        17.262        .32443E-05   -1.4720    
   2  alpha         2.8971        .72898        .35547E-02    .15953    
   3  Normalizat    .79564        .21838        .10583E-04   -1.0023    
   4  Prefactor     1.2532        .26014        .10448E-04   -.84710    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.94197e-11
Minuit parameter uncertainties:
  1  17.2656
  2  0.740013
  3  0.21862
  4  0.260408
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/95940': 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) = 5808.03362727
delta logL = 0.291350528705

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  2.439e+01  1.727e+01  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  2.897e+00  7.400e-01  0.000e+00  5.000e+00 ( 1.000e+00)
324         beta:  2.597e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
325           Eb:  4.424e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
617    Prefactor:  1.253e+00  2.604e-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:  7.956e-01  2.186e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.28
Ra Dec: 209.928 40.215
Photon Index (Free Index): 2.90 +/- 0.74
Photon Flux (Free Index): 7.12e-08 +/- 5.23e-08
Energy Flux (Free Index): 1.55e-05 +/- 9.99e-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/95940/cmap_HighResolution_334454401_334713601_4FGL_J1359.7+4012_daily_bin367.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.62e-05', comment='SUCCESS', photon_flux='4.58e-08', energy_flux2='1.55e-05', photon_flux_error='3.46e-08', dlogl='2.91e-01', energy_flux='1.37e-05', photon_flux2='7.12e-08', job_status='DONE', time_completed='2021-09-08 19:52:40.071156', photon_index_error2='0.74', photon_index2='2.90', ts='3.66', fit_tolerance='1e-08', GAL='1.23', photon_index_error='0.00', photon_flux_upper_limit='1.21e-07', energy_flux_error2='9.99e-06', EG='0.83', time_epoch_completed='1631155960.07', return_code='0', job_id='95940', GAL2='1.25', EG2='0.80', return_code2='0', energy_flux_error='1.03e-05', photon_flux_error2='5.23e-08', ts2='4.28', photon_index='2.33' WHERE bin_id='367' AND source_name='4FGL J1359.7+4012' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 19:52:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 95940: <4FGL_J1359.7+4012_daily_bin367> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.7+4012_daily_bin367 209.928 40.2153 334454401 334713601 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 :                                   943.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             311.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   979 sec.
    Turnaround time :                            983 sec.

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

