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


Performing analysis on: 4FGL_J1359.7+4012_daily_bin1156
RA = 209.928, Dec = 40.2153
tmin = 538963201, tmax = 539222401
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='100264', job_status='RUN', time_executed='2021-09-08 19:50:46.620135', time_epoch_executed='1631155846.62' WHERE source_name='4FGL J1359.7+4012' and cadence='daily' and bin_id='1156'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/100264

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/100264/ft1_4FGL_J1359.7+4012_daily_bin1156.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/100264/ft2_4FGL_J1359.7+4012_daily_bin1156.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/100264/ft1_4FGL_J1359.7+4012_daily_bin1156.fits outfile=/scratch/kocevski/100264/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin1156.fits ra=209.928 dec=40.2153 rad=12.0 tmin=538963201.0 tmax=539222401.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.54
user 4.33
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/100264/ft1_filtered_4FGL_J1359.7+4012_daily_bin1156.fits" evtable="EVENTS" scfile=/scratch/kocevski/100264/ft2_4FGL_J1359.7+4012_daily_bin1156.fits sctable="SC_DATA" outfile=/scratch/kocevski/100264/ltcube_538963201_539222401_4FGL_J1359.7+4012_daily_bin1156.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/100264/ft2_4FGL_J1359.7+4012_daily_bin1156.fits
.....................!
real 11.64
user 11.28
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/100264/ft1_filtered_4FGL_J1359.7+4012_daily_bin1156.fits evtable="EVENTS" scfile=/scratch/kocevski/100264/ft2_4FGL_J1359.7+4012_daily_bin1156.fits sctable="SC_DATA" expcube=/scratch/kocevski/100264/ltcube_538963201_539222401_4FGL_J1359.7+4012_daily_bin1156.fits outfile=/scratch/kocevski/100264/expmap_538963201_539222401_4FGL_J1359.7+4012_daily_bin1156.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/100264/ltcube_538963201_539222401_4FGL_J1359.7+4012_daily_bin1156.fits
.....................!
real 189.58
user 185.53
sys 3.74

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/100264/ft1_filtered_4FGL_J1359.7+4012_daily_bin1156.fits scfile=/scratch/kocevski/100264/ft2_4FGL_J1359.7+4012_daily_bin1156.fits outfile=/scratch/kocevski/100264/cmap_538963201_539222401_4FGL_J1359.7+4012_daily_bin1156.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/100264/ft1_filtered_4FGL_J1359.7+4012_daily_bin1156.fits scfile=/scratch/kocevski/100264/ft2_4FGL_J1359.7+4012_daily_bin1156.fits outfile=/scratch/kocevski/100264/cmap_HighResolution_538963201_539222401_4FGL_J1359.7+4012_daily_bin1156.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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/100264/ft1_filtered_4FGL_J1359.7+4012_daily_bin1156.fits evtable="EVENTS" scfile=/scratch/kocevski/100264/ft2_4FGL_J1359.7+4012_daily_bin1156.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/100264/Model_4FGL_J1359.7+4012_daily_bin1156.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/100264/ft1_filtered_4FGL_J1359.7+4012_daily_bin1156.fits.....................!
real 33.55
user 32.32
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.518       1.0000         .10000E-03   10000.    
     3 'norm      '    4.7575       1.0000         .10000E-03   10000.    
     4 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.5034       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.6944       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    44.053       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.6282       1.0000         .10000E-03   10000.    
    11 'norm      '    7.3510       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.5932       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .76085       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    76.642       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.0694       1.0000         .10000E-03   10000.    
    19 'Prefactor '    44.308       1.0000         .10000E-03   10000.    
    20 'norm      '    .10122E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.4365       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.2565       1.0000         .10000E-03   10000.    
    24 'norm      '    26.642       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    7.8788       1.0000         .10000E-03   10000.    
    27 'Prefactor '    21.504       1.0000         .10000E-03   10000.    
    28 'norm      '    .15618E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .98661E-01   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0780       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .89979       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=   3460.565     FROM MIGRAD    STATUS=CONVERGED    899 CALLS     4484 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    48.410       -.18055E-05** at limit **
   2  Prefactor     19.517        24.948        .11061E-05    .40176E-05
   3  norm          4.7576        8.1108       -.61488E-07   -.14200E-03
   4  norm          .10000E-03    8.1271       -.47927E-07** at limit **
   5  norm          2.5025        4.8377        .21362E-06   -.14330E-03
   6  Prefactor     2.6929        4.9396       -.85614E-06   -.34092E-03
   7  Prefactor     .10000E-03    8.7146       -.84454E-07** at limit **
   8  Prefactor     44.080        60.789       -.79236E-05    .30490E-04
   9  Prefactor     .10000E-03    60.146        .14022E-05** at limit **
  10  Prefactor     8.6011        147.18       -.22030E-04    .57234E-05
  11  norm          7.3506        7.9740        .12085E-05   -.42530E-04
  12  Prefactor     .10000E-03    127.64       -.21315E-05** at limit **
  13  norm          6.5931        2.8294        .24292E-06    .23678E-03
  14  Prefactor     .10000E-03    6.8116       -.35841E-06** at limit **
  15  norm          .76024        14.353       -.33234E-05    .17725E-04
  16  Prefactor     .10000E-03    16.724        .10492E-06** at limit **
  17  Prefactor     76.665        80.056       -.90424E-05    .10422E-04
  18  Prefactor     6.0700        6.2034        .48536E-06    .77202E-04
  19  Prefactor     44.303        34.417        .13980E-05    .36316E-04
  20  norm          .10000E-03    4.7238       -.31848E-06** at limit **
  21  Prefactor     .10000E-03    22.919       -.44107E-06** at limit **
  22  Prefactor     7.4220        24.183        .41666E-05    .54635E-04
  23  Prefactor     4.2562        4.0272       -.21243E-06    .48693E-04
  24  norm          26.638        24.554       -.33308E-05    .37984E-04
  25  Prefactor     .10000E-03    12.742        .30256E-06** at limit **
  26  norm          7.8814        7.9307        .17007E-05    .29443E-04
  27  Prefactor     21.523        43.768       -.38606E-04    .70611E-05
  28  norm          .10000E-03    9.0651        .17040E-06** at limit **
  29  Prefactor     .11243E-03    29.294       -.18324E-05** at limit **
  30  Prefactor     .10000E-03    3.6491        .92193E-07** at limit **
  31  Normalizat    1.0781        .25175        .34152E-05    .18163E-03
  32  Prefactor     .89972        .27544        .11546E-05    .18636E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 19.5165
  norm       = 4.75763
  norm       = 0.0001
  norm       = 2.50247
  Prefactor  = 2.69288
  Prefactor  = 0.0001
  Prefactor  = 44.0803
  Prefactor  = 0.0001
  Prefactor  = 8.60113
  norm       = 7.35065
  Prefactor  = 0.0001
  norm       = 6.59309
  Prefactor  = 0.0001
  norm       = 0.760236
  Prefactor  = 0.0001
  Prefactor  = 76.665
  Prefactor  = 6.06998
  Prefactor  = 44.3026
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.42195
  Prefactor  = 4.25624
  norm       = 26.6385
  Prefactor  = 0.0001
  norm       = 7.88143
  Prefactor  = 21.5235
  norm       = 0.000100001
  Prefactor  = 0.000112431
  Prefactor  = 0.0001
  Normalizat = 1.07808
  Prefactor  = 0.899719
 **********
 **   18 **HESSE 
 **********

 FCN=   3460.565     FROM HESSE     STATUS=OK           671 CALLS     5155 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    48.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     19.517        24.924        .90659E-04   -1.4824    
   3  norm          4.7576        8.0832        .18447E-03   -1.5272    
   4  norm          .10000E-03    8.1309        .16380E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.5025        4.8116        .17408E-03   -1.5392    
   6  Prefactor     2.6929        4.9407        .16651E-03   -1.5380    
   7  Prefactor     .10000E-03    8.7202        .16957E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     44.080        59.953        .60403E-04   -1.4379    
   9  Prefactor     .10000E-03    60.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.6011        144.13        .13647E-03   -1.5121    
  11  norm          7.3506        7.9586        .14793E-03   -1.5166    
  12  Prefactor     .10000E-03    127.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.5931        2.8247        .60177E-04   -1.5194    
  14  Prefactor     .10000E-03    7.0467        .29954E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .76024        44.870        .42714E-02   -1.5534    
  16  Prefactor     .10000E-03    16.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     76.665        80.350        .45868E-04   -1.3955    
  18  Prefactor     6.0700        6.1952        .13940E-03   -1.5215    
  19  Prefactor     44.303        34.606        .60230E-04   -1.4376    
  20  norm          .10000E-03    10.233        .24577E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    22.925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.4220        24.203        .14707E-03   -1.5163    
  23  Prefactor     4.2562        4.0255        .11056E-03   -1.5295    
  24  norm          26.638        24.436        .77613E-04   -1.4675    
  25  Prefactor     .10000E-03    12.756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          7.8814        7.9278        .14285E-03   -1.5146    
  27  Prefactor     21.523        43.784        .86374E-04   -1.4780    
  28  norm          .10000E-03    33.644        .33114E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .11243E-03    31.469        .86282E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    3.6505        .10975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.0781        .30192        .23241E-03   -.90459    
  32  Prefactor     .89972        .32699        .30162E-03   -.96151    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.24638e-10
Minuit parameter uncertainties:
  1  1.06334e-05
  2  24.9369
  3  8.08501
  4  2.4404e-06
  5  4.81234
  6  4.9414
  7  2.26575e-06
  8  60.0349
  9  1.14136e-06
  10  70.6194
  11  7.95979
  12  0.00023378
  13  2.82479
  14  5.69197e-05
  15  11.6895
  16  3.09343e-05
  17  80.4645
  18  6.19584
  19  34.6214
  20  5.01156e-05
  21  6.08071e-05
  22  24.2352
  23  4.0258
  24  24.4454
  25  6.09821e-06
  26  7.92888
  27  43.8493
  28  0.000323614
  29  0.0395786
  30  1.92413e-06
  31  0.3024
  32  0.327707
Done.

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

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  7.602e-01  1.169e+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:  8.997e-01  3.277e-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.078e+00  3.024e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/100264/likelihoodResults_538963201_539222401_4FGL_J1359.7+4012_daily_bin1156.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) = 3460.56416737
delta logL = 0.000469669902941

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3460.56369218
delta logL = 0.000944867858379

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .91149       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1090       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0782       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89936       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=   3460.564     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      292 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .91188        43.582        .42994E-02   -.22040E-03
   2  alpha         2.1088        3.3244        .10371       -.12355E-04
   3  Normalizat    1.0783        .26211        .23239E-03    .14676E-05
   4  Prefactor     .89932        .31516        .30168E-03    .14075E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.911884
  alpha      = 2.10875
  Normalizat = 1.07828
  Prefactor  = 0.899317
 **********
 **   18 **HESSE 
 **********

 FCN=   3460.564     FROM HESSE     STATUS=OK            27 CALLS      319 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .91188        37.956        .17198E-03   -1.5517    
   2  alpha         2.1088        3.4111        .41486E-02   -.15714    
   3  Normalizat    1.0783        .26238        .92954E-05   -.90452    
   4  Prefactor     .89932        .31525        .12067E-04   -.96165    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.52494e-09
Minuit parameter uncertainties:
  1  11.7736
  2  4.6842
  3  0.262695
  4  0.31589
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/100264': 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) = 3460.56369217
delta logL = 0.00094487806291

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  9.119e-01  1.177e+01  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  2.109e+00  4.684e+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:  8.993e-01  3.159e-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.078e+00  2.627e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 209.928 40.215

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/100264/cmap_HighResolution_538963201_539222401_4FGL_J1359.7+4012_daily_bin1156.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.33e-05', job_status='DONE', photon_flux_upper_limit='7.83e-08', time_completed='2021-09-08 20:02:18.253996', job_id='100264', GAL2='0.90', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1631156538.25', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='9.45e-04', ts2='0.01', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1156' AND source_name='4FGL J1359.7+4012' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 20:02:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0016>
Subject: Job 100264: <4FGL_J1359.7+4012_daily_bin1156> in cluster <slac> Done

Job <4FGL_J1359.7+4012_daily_bin1156> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Sep  8 19:50:30 2021
Job was executed on host(s) <bullet0016>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 19:50:31 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:50:31 2021
Terminated at Wed Sep  8 20:02:19 2021
Results reported at Wed Sep  8 20:02:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.7+4012_daily_bin1156 209.928 40.2153 538963201 539222401 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 :                                   682.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             352.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   707 sec.
    Turnaround time :                            709 sec.

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

