/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 4 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 = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1359.7+4012_daily_bin32
RA = 209.928, Dec = 40.2153
tmin = 247622401, tmax = 247881601
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='95389', job_status='RUN', time_executed='2021-09-08 19:35:40.579303', time_epoch_executed='1631154940.58' WHERE source_name='4FGL J1359.7+4012' and cadence='daily' and bin_id='32'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/95389

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/95389/ft1_4FGL_J1359.7+4012_daily_bin32.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/95389/ft2_4FGL_J1359.7+4012_daily_bin32.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/95389/ft1_4FGL_J1359.7+4012_daily_bin32.fits outfile=/scratch/kocevski/95389/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin32.fits ra=209.928 dec=40.2153 rad=12.0 tmin=247622401.0 tmax=247881601.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 1.41
user 1.23
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/95389/ft1_filtered_4FGL_J1359.7+4012_daily_bin32.fits" evtable="EVENTS" scfile=/scratch/kocevski/95389/ft2_4FGL_J1359.7+4012_daily_bin32.fits sctable="SC_DATA" outfile=/scratch/kocevski/95389/ltcube_247622401_247881601_4FGL_J1359.7+4012_daily_bin32.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/95389/ft2_4FGL_J1359.7+4012_daily_bin32.fits
.....................!
real 12.77
user 12.40
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/95389/ft1_filtered_4FGL_J1359.7+4012_daily_bin32.fits evtable="EVENTS" scfile=/scratch/kocevski/95389/ft2_4FGL_J1359.7+4012_daily_bin32.fits sctable="SC_DATA" expcube=/scratch/kocevski/95389/ltcube_247622401_247881601_4FGL_J1359.7+4012_daily_bin32.fits outfile=/scratch/kocevski/95389/expmap_247622401_247881601_4FGL_J1359.7+4012_daily_bin32.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/95389/ltcube_247622401_247881601_4FGL_J1359.7+4012_daily_bin32.fits
.....................!
real 191.67
user 186.11
sys 5.13

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/95389/ft1_filtered_4FGL_J1359.7+4012_daily_bin32.fits scfile=/scratch/kocevski/95389/ft2_4FGL_J1359.7+4012_daily_bin32.fits outfile=/scratch/kocevski/95389/cmap_247622401_247881601_4FGL_J1359.7+4012_daily_bin32.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.54
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/95389/ft1_filtered_4FGL_J1359.7+4012_daily_bin32.fits scfile=/scratch/kocevski/95389/ft2_4FGL_J1359.7+4012_daily_bin32.fits outfile=/scratch/kocevski/95389/cmap_HighResolution_247622401_247881601_4FGL_J1359.7+4012_daily_bin32.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.58
user 0.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    46.359       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.1404       1.0000         .10000E-03   10000.    
     4 'norm      '    5.6968       1.0000         .10000E-03   10000.    
     5 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10188E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .17829E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10491E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    56.395       1.0000         .10000E-03   10000.    
    11 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.3821       1.0000         .10000E-03   10000.    
    13 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.0248       1.0000         .10000E-03   10000.    
    15 'norm      '    5.4434       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .54755E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    60.975       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10344E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.372       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10737E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    6.9966       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .39167       1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .11680E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    1.3856       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0270       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .92002       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=   6135.127     FROM MIGRAD    STATUS=CONVERGED    864 CALLS     4534 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     46.349        50.909       -.32030E-05   -.19972E-03
   2  Prefactor     .10000E-03    6.1101       -.63022E-07** at limit **
   3  norm          4.1401        3.8758       -.13367E-06   -.31221E-03
   4  norm          5.6959        12.875        .50272E-05   -.70330E-04
   5  norm          .10000E-03    1.2764       -.15861E-07** at limit **
   6  Prefactor     .10000E-03    .63502       -.29654E-08** at limit **
   7  Prefactor     .10000E-03    12.336        .18742E-06** at limit **
   8  Prefactor     .10000E-03    47.177        .17491E-05** at limit **
   9  Prefactor     .10003E-03    54.806       -.51679E-05** at limit **
  10  Prefactor     56.384        33.132       -.63807E-06   -.24905E-03
  11  norm          .10000E-03    2.0229        .15475E-08** at limit **
  12  Prefactor     9.3832        79.494       -.15096E-05   -.19824E-04
  13  norm          .10000E-03    .87503        .62429E-07** at limit **
  14  Prefactor     4.0250        3.4287        .26922E-07   -.41735E-04
  15  norm          5.4430        14.378        .33833E-08    .75723E-04
  16  Prefactor     .17325E-03    18.269       -.41003E-05** at limit **
  17  Prefactor     60.955        44.271       -.24601E-05   -.44459E-03
  18  Prefactor     .10000E-03    1.9686       -.14578E-06** at limit **
  19  Prefactor     .10000E-03    8.9153       -.19727E-07** at limit **
  20  norm          .10000E-03    3.2478        .35185E-07** at limit **
  21  Prefactor     12.377        13.370       -.26776E-06    .23078E-03
  22  Prefactor     .10000E-03    14.257       -.33243E-07** at limit **
  23  Prefactor     .10000E-03    1.5917        .16818E-06** at limit **
  24  norm          6.9915        13.656        .14608E-08    .21272E-04
  25  Prefactor     .30204        19.057        .10668E-06   -.39968E-05
  26  norm          .10000E-03    1.1107       -.10466E-07** at limit **
  27  Prefactor     .10001E-03    64.228        .36066E-05** at limit **
  28  norm          1.3848        4.1456        .59059E-06   -.14021E-03
  29  Prefactor     .10000E-03    5.6980        .87572E-07** at limit **
  30  Prefactor     .10000E-03    3.1899       -.63879E-08** at limit **
  31  Normalizat    1.0266        .16295        .67792E-06    .98157E-04
  32  Prefactor     .92047        .19275       -.90070E-06    .13933E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 46.3494
  Prefactor  = 0.0001
  norm       = 4.14009
  norm       = 5.69591
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.000100025
  Prefactor  = 56.3842
  norm       = 0.0001
  Prefactor  = 9.38323
  norm       = 0.0001
  Prefactor  = 4.02495
  norm       = 5.44296
  Prefactor  = 0.000173251
  Prefactor  = 60.955
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.3769
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.99153
  Prefactor  = 0.302037
  norm       = 0.0001
  Prefactor  = 0.00010001
  norm       = 1.38485
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.02665
  Prefactor  = 0.920469
 **********
 **   18 **HESSE 
 **********

 FCN=   6135.127     FROM HESSE     STATUS=OK           669 CALLS     5203 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     46.349        51.116        .58888E-04   -1.4345    
   2  Prefactor     .10000E-03    6.1235        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.1401        3.8815        .14531E-03   -1.5301    
   4  norm          5.6959        13.440        .84146E-03   -1.5231    
   5  norm          .10000E-03    1.2782        .86414E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    .63673        .60944E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.782        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    48.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10003E-03    57.336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     56.384        33.300        .53418E-04   -1.4205    
  11  norm          .10000E-03    2.0397        .10878E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.3832        79.941        .13084E-03   -1.5095    
  13  norm          .10000E-03    2.0541        .14060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.0250        3.4288        .12856E-03   -1.5307    
  15  norm          5.4430        14.382        .17223E-03   -1.5241    
  16  Prefactor     .17325E-03    17.223        .92885E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     60.955        45.857        .51384E-04   -1.4145    
  18  Prefactor     .10000E-03    1.9799        .10721E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.9411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.3910        .27528E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.377        13.359        .11388E-03   -1.5004    
  22  Prefactor     .10000E-03    14.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.8262        .19121E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          6.9915        13.656        .15167E-03   -1.5179    
  25  Prefactor     .30204        21.706        .98953E-01   -1.5598    
  26  norm          .10000E-03    1.1115        .80616E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10001E-03    66.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          1.3848        4.1243        .27128E-03   -1.5473    
  29  Prefactor     .10000E-03    5.7056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    3.1973        .13662E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.0266        .19441        .21149E-03   -.92143    
  32  Prefactor     .92047        .22963        .27142E-03   -.95429    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.42357e-09
Minuit parameter uncertainties:
  1  51.164
  2  9.2853e-06
  3  3.88169
  4  13.4476
  5  3.20618e-07
  6  3.30683e-07
  7  1.78722e-05
  8  0.00085614
  9  0.00240827
  10  33.3108
  11  1.82484e-06
  12  54.8748
  13  5.40645e-06
  14  3.42897
  15  14.3914
  16  0.0710583
  17  45.8837
  18  3.06287e-07
  19  1.16067e-05
  20  4.60772e-06
  21  13.362
  22  3.82388e-05
  23  1.05048e-05
  24  13.6624
  25  5.12206
  26  9.78462e-07
  27  0.00163015
  28  4.12513
  29  1.13912e-05
  30  2.8228e-06
  31  0.194544
  32  0.229873
Done.

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

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  5.443e+00  1.439e+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.205e-01  2.299e-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.027e+00  1.945e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/95389/likelihoodResults_247622401_247881601_4FGL_J1359.7+4012_daily_bin32.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) = 6134.78320058
delta logL = 0.343811556946

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6134.76632325
delta logL = 0.360688885211

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.1066       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.7581       1.0000          .0000       5.0000    
     3 'Normalizat'    .98969       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94992       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=   6134.766     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      233 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.1075        9.4767        .17792E-03   -.12814E-02
   2  alpha         3.7579        1.4215        .34313E-02   -.79896E-04
   3  Normalizat    .98969        .19141        .21493E-03    .20211E-03
   4  Prefactor     .94993        .22969        .26759E-03    .16556E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.10747
  alpha      = 3.75791
  Normalizat = 0.989689
  Prefactor  = 0.949928
 **********
 **   18 **HESSE 
 **********

 FCN=   6134.766     FROM HESSE     STATUS=OK            23 CALLS      256 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.1075        9.2306        .71167E-05   -1.5256    
   2  alpha         3.7579        1.3908        .13725E-03    .52726    
   3  Normalizat    .98969        .19166        .42987E-04   -.93377    
   4  Prefactor     .94993        .22996        .10704E-04   -.94418    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59548e-09
Minuit parameter uncertainties:
  1  9.23321
  2  1.51101
  3  0.191797
  4  0.230199
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/95389': 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) = 6134.76632324
delta logL = 0.360688896085

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  5.107e+00  9.233e+00  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  3.758e+00  1.511e+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:  9.499e-01  2.302e-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.897e-01  1.918e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.17
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/95389/cmap_HighResolution_247622401_247881601_4FGL_J1359.7+4012_daily_bin32.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.17e-05', job_status='DONE', photon_flux_upper_limit='7.27e-08', time_completed='2021-09-08 19:51:20.173853', job_id='95389', GAL2='0.95', fit_tolerance='1e-08', EG2='0.99', EG='1.03', time_epoch_completed='1631155880.17', return_code2='0', ts='0.17', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='3.61e-01', ts2='0.93', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='32' AND source_name='4FGL J1359.7+4012' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 19:51:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0070>
Subject: Job 95389: <4FGL_J1359.7+4012_daily_bin32> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.7+4012_daily_bin32 209.928 40.2153 247622401 247881601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1359.7+4012 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   936.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             329.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   952 sec.
    Turnaround time :                            953 sec.

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

