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


Performing analysis on: 4FGL_J1359.7+4012_daily_bin1170
RA = 209.928, Dec = 40.2153
tmin = 542592001, tmax = 542851201
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='100286', job_status='RUN', time_executed='2021-09-08 19:54:01.891212', time_epoch_executed='1631156041.89' WHERE source_name='4FGL J1359.7+4012' and cadence='daily' and bin_id='1170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/100286

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/100286/ft1_4FGL_J1359.7+4012_daily_bin1170.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/100286/ft2_4FGL_J1359.7+4012_daily_bin1170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/100286/ft1_4FGL_J1359.7+4012_daily_bin1170.fits outfile=/scratch/kocevski/100286/ft1_filteredMKT_4FGL_J1359.7+4012_daily_bin1170.fits ra=209.928 dec=40.2153 rad=12.0 tmin=542592001.0 tmax=542851201.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 6.69
user 6.40
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/100286/ft1_filtered_4FGL_J1359.7+4012_daily_bin1170.fits" evtable="EVENTS" scfile=/scratch/kocevski/100286/ft2_4FGL_J1359.7+4012_daily_bin1170.fits sctable="SC_DATA" outfile=/scratch/kocevski/100286/ltcube_542592001_542851201_4FGL_J1359.7+4012_daily_bin1170.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/100286/ft2_4FGL_J1359.7+4012_daily_bin1170.fits
.....................!
real 11.96
user 11.59
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/100286/ft1_filtered_4FGL_J1359.7+4012_daily_bin1170.fits evtable="EVENTS" scfile=/scratch/kocevski/100286/ft2_4FGL_J1359.7+4012_daily_bin1170.fits sctable="SC_DATA" expcube=/scratch/kocevski/100286/ltcube_542592001_542851201_4FGL_J1359.7+4012_daily_bin1170.fits outfile=/scratch/kocevski/100286/expmap_542592001_542851201_4FGL_J1359.7+4012_daily_bin1170.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/100286/ltcube_542592001_542851201_4FGL_J1359.7+4012_daily_bin1170.fits
.....................!
real 191.55
user 185.79
sys 5.44

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/100286/ft1_filtered_4FGL_J1359.7+4012_daily_bin1170.fits scfile=/scratch/kocevski/100286/ft2_4FGL_J1359.7+4012_daily_bin1170.fits outfile=/scratch/kocevski/100286/cmap_542592001_542851201_4FGL_J1359.7+4012_daily_bin1170.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.37
sys 0.15

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23931E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    61.317       1.0000         .10000E-03   10000.    
     3 'norm      '    3.9688       1.0000         .10000E-03   10000.    
     4 'norm      '    81.740       1.0000         .10000E-03   10000.    
     5 'norm      '    10.327       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.261       1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.835       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11017E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    13.309       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10448E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    8.5691       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.3846       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    65.848       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    33.658       1.0000         .10000E-03   10000.    
    20 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.973       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.4778       1.0000         .10000E-03   10000.    
    23 'Prefactor '    13.973       1.0000         .10000E-03   10000.    
    24 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    18.547       1.0000         .10000E-03   10000.    
    26 'norm      '    1.2855       1.0000         .10000E-03   10000.    
    27 'Prefactor '    18.626       1.0000         .10000E-03   10000.    
    28 'norm      '    7.5834       1.0000         .10000E-03   10000.    
    29 'Prefactor '    2.9618       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.1298       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .97381       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=   2697.409     FROM MIGRAD    STATUS=CONVERGED    819 CALLS     4326 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10054E-03    2019.5       -.30581E-04** at limit **
   2  Prefactor     61.306        42.793        .28019E-06    .39983E-05
   3  norm          3.9693        6.9438        .13819E-06   -.30346E-05
   4  norm          81.673        48.033       -.22122E-05   -.38076E-05
   5  norm          10.321        12.879        .99159E-07    .20711E-03
   6  Prefactor     .10000E-03    3.4037       -.11839E-06** at limit **
   7  Prefactor     11.259        23.677        .70468E-06   -.21230E-04
   8  Prefactor     23.838        90.026        .87460E-06    .17875E-04
   9  Prefactor     .10000E-03    42.515        .10998E-07** at limit **
  10  Prefactor     .10000E-03    48.947        .74098E-06** at limit **
  11  norm          13.314        16.771        .42749E-06    .25612E-04
  12  Prefactor     .10000E-03    45.610       -.46668E-06** at limit **
  13  norm          8.5684        3.6408        .90098E-07   -.32536E-04
  14  Prefactor     .10000E-03    2.4441        .21911E-07** at limit **
  15  norm          5.3802        23.550        .13145E-05    .13323E-04
  16  Prefactor     .10000E-03    10.478       -.19039E-06** at limit **
  17  Prefactor     65.835        90.082        .77178E-06   -.24282E-04
  18  Prefactor     .10000E-03    3.7276        .31678E-07** at limit **
  19  Prefactor     33.630        34.739        .97244E-06    .10368E-03
  20  norm          .10000E-03    2.3621       -.20417E-07** at limit **
  21  Prefactor     13.979        22.751       -.71444E-07   -.10463E-03
  22  Prefactor     6.4832        24.014        .17253E-06   -.66850E-04
  23  Prefactor     13.971        7.0432        .13258E-06   -.35757E-04
  24  norm          .10000E-03    10.595       -.31107E-07** at limit **
  25  Prefactor     18.559        32.235       -.83046E-07   -.98365E-04
  26  norm          1.2821        9.2378        .12957E-05   -.77416E-04
  27  Prefactor     18.677        61.353        .10157E-05    .50405E-04
  28  norm          7.5838        12.671       -.22359E-05   -.79888E-04
  29  Prefactor     2.9587        46.548        .19988E-04   -.72259E-04
  30  Prefactor     .10000E-03    10.205       -.43750E-06** at limit **
  31  Normalizat    1.1302        .30180       -.30854E-05    .32415E-04
  32  Prefactor     .97343        .33932        .23390E-06   -.52455E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100537
  Prefactor  = 61.3061
  norm       = 3.9693
  norm       = 81.6733
  norm       = 10.3212
  Prefactor  = 0.0001
  Prefactor  = 11.2594
  Prefactor  = 23.8378
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 13.3144
  Prefactor  = 0.000100001
  norm       = 8.56843
  Prefactor  = 0.0001
  norm       = 5.38022
  Prefactor  = 0.0001
  Prefactor  = 65.8351
  Prefactor  = 0.0001
  Prefactor  = 33.6301
  norm       = 0.0001
  Prefactor  = 13.9791
  Prefactor  = 6.48324
  Prefactor  = 13.9708
  norm       = 0.0001
  Prefactor  = 18.5589
  norm       = 1.28207
  Prefactor  = 18.6772
  norm       = 7.5838
  Prefactor  = 2.9587
  Prefactor  = 0.0001
  Normalizat = 1.1302
  Prefactor  = 0.973426
 **********
 **   18 **HESSE 
 **********

 FCN=   2697.409     FROM HESSE     STATUS=OK           659 CALLS     4985 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10054E-03    2047.2        .20061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     61.306        42.890        .51241E-04   -1.4140    
   3  norm          3.9693        6.9331        .17396E-03   -1.5309    
   4  norm          81.673        47.808        .22213E-03   -1.3898    
   5  norm          10.321        12.870        .12468E-03   -1.5065    
   6  Prefactor     .10000E-03    3.4150        .93256E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.259        23.751        .11939E-03   -1.5037    
   8  Prefactor     23.838        89.977        .82048E-04   -1.4731    
   9  Prefactor     .10000E-03    42.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    48.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          13.314        16.748        .10980E-03   -1.4978    
  12  Prefactor     .10000E-03    45.633        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          8.5684        3.6465        .61506E-04   -1.5122    
  14  Prefactor     .10000E-03    2.4534        .79288E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.3802        23.715        .17318E-03   -1.5244    
  16  Prefactor     .10000E-03    10.483        .16423E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     65.835        90.178        .49458E-04   -1.4083    
  18  Prefactor     .10000E-03    3.7292        .97912E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     33.630        34.907        .69071E-04   -1.4547    
  20  norm          .10000E-03    2.3675        .77946E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     13.979        22.723        .10715E-03   -1.4960    
  22  Prefactor     6.4832        23.974        .15769E-03   -1.5199    
  23  Prefactor     13.971        7.0687        .93250E-04   -1.4960    
  24  norm          .10000E-03    10.602        .16512E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     18.559        32.271        .93000E-04   -1.4846    
  26  norm          1.2821        9.1346        .29878E-03   -1.5482    
  27  Prefactor     18.677        61.305        .92802E-04   -1.4843    
  28  norm          7.5838        12.690        .14563E-03   -1.5157    
  29  Prefactor     2.9587        47.018        .11798E-02   -1.5364    
  30  Prefactor     .10000E-03    10.251        .16215E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.1302        .36744        .24900E-03   -.88788    
  32  Prefactor     .97343        .41041        .32024E-03   -.93621    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.46596e-10
Minuit parameter uncertainties:
  1  0.0688111
  2  42.9119
  3  6.93445
  4  47.83
  5  12.8734
  6  3.13506e-06
  7  23.7714
  8  90.4952
  9  2.90653e-05
  10  0.000331282
  11  16.7536
  12  0.000321899
  13  3.64659
  14  4.49743e-06
  15  22.6062
  16  5.10279e-05
  17  90.3655
  18  5.76553e-07
  19  34.9278
  20  2.0572e-06
  21  22.737
  22  24.0097
  23  7.06908
  24  3.82909e-05
  25  32.3011
  26  6.84557
  27  61.5131
  28  12.6949
  29  23.6109
  30  6.02636e-05
  31  0.368279
  32  0.411729
Done.

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

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  5.380e+00  2.261e+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.734e-01  4.117e-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.130e+00  3.683e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/100286/likelihoodResults_542592001_542851201_4FGL_J1359.7+4012_daily_bin1170.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) = 2697.17678872
delta logL = 0.232139673062

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2697.17046096
delta logL = 0.238467426084

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.1883       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.7349       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0858       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0048       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=   2697.170     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      249 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.1926        15.390        .16138E-03   -.90068E-04
   2  alpha         3.7343        1.8058        .30484E-02   -.36679E-05
   3  Normalizat    1.0858        .33949        .25336E-03   -.50728E-04
   4  Prefactor     1.0047        .40290        .31574E-03   -.15154E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.19261
  alpha      = 3.73432
  Normalizat = 1.08583
  Prefactor  = 1.00471
 **********
 **   18 **HESSE 
 **********

 FCN=   2697.170     FROM HESSE     STATUS=OK            23 CALLS      272 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.1926        15.040        .64551E-05   -1.5210    
   2  alpha         3.7343        1.7782        .12193E-03    .51637    
   3  Normalizat    1.0858        .33987        .10134E-04   -.90208    
   4  Prefactor     1.0047        .40331        .63148E-04   -.92573    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.66705e-10
Minuit parameter uncertainties:
  1  15.0495
  2  2.08233
  3  0.340554
  4  0.404528
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/100286': 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) = 2697.17046092
delta logL = 0.238467474347

Extracting fit parameters...

4FGL J1359.7+4012
   Spectrum: LogParabola
322         norm:  6.193e+00  1.505e+01  1.000e-04  1.000e+04 ( 1.000e-12)
323        alpha:  3.734e+00  2.082e+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.005e+00  4.045e-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.086e+00  3.406e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.06
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/100286/cmap_HighResolution_542592001_542851201_4FGL_J1359.7+4012_daily_bin1170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.68e-05', job_status='DONE', photon_flux_upper_limit='1.24e-07', time_completed='2021-09-08 20:04:29.801965', job_id='100286', GAL2='1.00', fit_tolerance='1e-08', EG2='1.09', EG='1.13', time_epoch_completed='1631156669.8', return_code2='0', ts='0.06', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='2.38e-01', ts2='0.56', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1170' AND source_name='4FGL J1359.7+4012' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 20:04:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 100286: <4FGL_J1359.7+4012_daily_bin1170> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1359.7+4012_daily_bin1170 209.928 40.2153 542592001 542851201 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 :                                   613.09 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             278.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   837 sec.
    Turnaround time :                            838 sec.

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

