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


Performing analysis on: 4FGL_J1350.8+3033_daily_bin1147
RA = 207.715, Dec = 30.5588
tmin = 536630401, tmax = 536889601
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='8779', job_status='RUN', time_executed='2021-09-08 15:01:52.547430', time_epoch_executed='1631138512.55' WHERE source_name='4FGL J1350.8+3033' and cadence='daily' and bin_id='1147'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/8779

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/8779/ft1_4FGL_J1350.8+3033_daily_bin1147.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/8779/ft2_4FGL_J1350.8+3033_daily_bin1147.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/8779/ft1_4FGL_J1350.8+3033_daily_bin1147.fits outfile=/scratch/kocevski/8779/ft1_filteredMKT_4FGL_J1350.8+3033_daily_bin1147.fits ra=207.715 dec=30.5588 rad=12.0 tmin=536630401.0 tmax=536889601.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.53
user 3.31
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/8779/ft2_4FGL_J1350.8+3033_daily_bin1147.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/8779/ft2_4FGL_J1350.8+3033_daily_bin1147.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/8779/ft1_filteredMKT_4FGL_J1350.8+3033_daily_bin1147.fits evtable="EVENTS" outfile="/scratch/kocevski/8779/ft1_filtered_4FGL_J1350.8+3033_daily_bin1147.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.36
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/8779/ft1_filtered_4FGL_J1350.8+3033_daily_bin1147.fits" evtable="EVENTS" scfile=/scratch/kocevski/8779/ft2_4FGL_J1350.8+3033_daily_bin1147.fits sctable="SC_DATA" outfile=/scratch/kocevski/8779/ltcube_536630401_536889601_4FGL_J1350.8+3033_daily_bin1147.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/8779/ft2_4FGL_J1350.8+3033_daily_bin1147.fits
.....................!
real 15.51
user 15.15
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/8779/ft1_filtered_4FGL_J1350.8+3033_daily_bin1147.fits evtable="EVENTS" scfile=/scratch/kocevski/8779/ft2_4FGL_J1350.8+3033_daily_bin1147.fits sctable="SC_DATA" expcube=/scratch/kocevski/8779/ltcube_536630401_536889601_4FGL_J1350.8+3033_daily_bin1147.fits outfile=/scratch/kocevski/8779/expmap_536630401_536889601_4FGL_J1350.8+3033_daily_bin1147.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/8779/ltcube_536630401_536889601_4FGL_J1350.8+3033_daily_bin1147.fits
.....................!
real 191.52
user 186.91
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 177 point sources and 0 extended sources

Setting source of interest to:
4FGL J1350.8+3033 @ 207.715 30.5588

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/8779/ft1_filtered_4FGL_J1350.8+3033_daily_bin1147.fits scfile=/scratch/kocevski/8779/ft2_4FGL_J1350.8+3033_daily_bin1147.fits outfile=/scratch/kocevski/8779/cmap_536630401_536889601_4FGL_J1350.8+3033_daily_bin1147.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=207.715 yref=30.5588 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.56
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/8779/ft1_filtered_4FGL_J1350.8+3033_daily_bin1147.fits scfile=/scratch/kocevski/8779/ft2_4FGL_J1350.8+3033_daily_bin1147.fits outfile=/scratch/kocevski/8779/cmap_HighResolution_536630401_536889601_4FGL_J1350.8+3033_daily_bin1147.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=207.715 yref=30.5588 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.56
user 0.41
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/8779/ft1_filtered_4FGL_J1350.8+3033_daily_bin1147.fits evtable="EVENTS" scfile=/scratch/kocevski/8779/ft2_4FGL_J1350.8+3033_daily_bin1147.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/8779/Model_4FGL_J1350.8+3033_daily_bin1147.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/8779/ft1_filtered_4FGL_J1350.8+3033_daily_bin1147.fits....................!
real 56.15
user 54.78
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/8779/ft1_filtered_4FGL_J1350.8+3033_daily_bin1147.fits', '/scratch/kocevski/8779/ft2_4FGL_J1350.8+3033_daily_bin1147.fits', expMap='/scratch/kocevski/8779/expmap_536630401_536889601_4FGL_J1350.8+3033_daily_bin1147.fits', expCube='/scratch/kocevski/8779/ltcube_536630401_536889601_4FGL_J1350.8+3033_daily_bin1147.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/8779/Model_4FGL_J1350.8+3033_daily_bin1147.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1350.8+3033'

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  1.772e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        Index:  2.415e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
290        Scale:  7.126e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/8779/ft1_filtered_4FGL_J1350.8+3033_daily_bin1147.fits
Spacecraft file(s): /scratch/kocevski/8779/ft2_4FGL_J1350.8+3033_daily_bin1147.fits
Exposure map: /scratch/kocevski/8779/expmap_536630401_536889601_4FGL_J1350.8+3033_daily_bin1147.fits
Exposure cube: /scratch/kocevski/8779/ltcube_536630401_536889601_4FGL_J1350.8+3033_daily_bin1147.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/8779/Model_4FGL_J1350.8+3033_daily_bin1147.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) = 7070.15602458

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.7992       1.0000         .10000E-03   10000.    
     2 'Prefactor '    20.897       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10367E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    10.045       1.0000         .10000E-03   10000.    
     5 'norm      '    .87233       1.0000         .10000E-03   10000.    
     6 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    42.534       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .16898E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.100       1.0000         .10000E-03   10000.    
    10 'norm      '    4.8107       1.0000         .10000E-03   10000.    
    11 'Prefactor '    37.433       1.0000         .10000E-03   10000.    
    12 'norm      '    13.499       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.8987       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    17.255       1.0000         .10000E-03   10000.    
    24 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    10.591       1.0000         .10000E-03   10000.    
    26 'norm      '    .16580E-02   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1564       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .87615       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7070.050     FROM MIGRAD    STATUS=CONVERGED    707 CALLS     3682 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.7995        4.6562       -.16923E-06   -.74277E-04
   2  Prefactor     20.904        29.388        .33431E-07    .64583E-04
   3  Prefactor     .10000E-03    40.673       -.47681E-06** at limit **
   4  norm          10.047        6.8299        .29296E-08    .82830E-04
   5  norm          .86811        2.8866        .16386E-05    .82202E-04
   6  norm          .10000E-03    4.2394       -.68668E-06** at limit **
   7  norm          42.534        24.715       -.10996E-08   -.46007E-05
   8  Prefactor     .10000E-03    2.5196       -.45084E-06** at limit **
   9  Prefactor     20.095        15.098       -.18607E-06    .59306E-04
  10  norm          4.8107        4.8845       -.13492E-07   -.86020E-05
  11  Prefactor     37.420        39.607       -.15352E-05   -.10463E-03
  12  norm          13.499        8.8861        .31964E-07   -.10892E-04
  13  Prefactor     .10000E-03    7.3698       -.21247E-06** at limit **
  14  Prefactor     .10000E-03    21.190        .82831E-08** at limit **
  15  Prefactor     .10000E-03    20.071       -.36563E-06** at limit **
  16  Prefactor     .10000E-03    1.9137        .16406E-08** at limit **
  17  Prefactor     5.8988        11.765        .22431E-06   -.11081E-04
  18  norm          .10000E-03    3.5599       -.70706E-08** at limit **
  19  Prefactor     .10000E-03    6.9894        .34065E-06** at limit **
  20  norm          .10000E-03    1.5486       -.52661E-08** at limit **
  21  Prefactor     .10000E-03    8.5764       -.54830E-06** at limit **
  22  Prefactor     .10000E-03    10.098        .62759E-06** at limit **
  23  Prefactor     17.255        5.5267        .30849E-07   -.19204E-03
  24  norm          .10000E-03    16.729       -.48564E-06** at limit **
  25  norm          10.591        3.3243        .78932E-08   -.39432E-05
  26  norm          .10012E-03    6.4624        .10846E-05** at limit **
  27  Prefactor     .10000E-03    23.028        .67843E-06** at limit **
  28  Normalizat    1.1563        .16444       -.16212E-06   -.10557E-03
  29  Prefactor     .87622        .17348       -.59303E-07   -.83619E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.79949
  Prefactor  = 20.9035
  Prefactor  = 0.0001
  norm       = 10.0474
  norm       = 0.868112
  norm       = 0.0001
  norm       = 42.5339
  Prefactor  = 0.000100001
  Prefactor  = 20.0947
  norm       = 4.81074
  Prefactor  = 37.4198
  norm       = 13.4993
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.89883
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.2546
  norm       = 0.0001
  norm       = 10.5912
  norm       = 0.000100118
  Prefactor  = 0.0001
  Normalizat = 1.15628
  Prefactor  = 0.87622
 **********
 **   18 **HESSE 
 **********

 FCN=   7070.050     FROM HESSE     STATUS=OK           555 CALLS     4237 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.7995        4.6517        .16582E-03   -1.5270    
   2  Prefactor     20.904        29.491        .87619E-04   -1.4793    
   3  Prefactor     .10000E-03    41.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          10.047        6.7614        .12643E-03   -1.5074    
   5  norm          .86811        2.9939        .25083E-03   -1.5522    
   6  norm          .10000E-03    4.5954        .34610E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          42.534        24.706        .61468E-04   -1.4403    
   8  Prefactor     .10000E-03    5.1757        .24064E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     20.095        14.696        .89337E-04   -1.4811    
  10  norm          4.8107        4.8767        .17621E-03   -1.5269    
  11  Prefactor     37.420        40.304        .32754E-03   -1.4484    
  12  norm          13.499        8.8713        .10902E-03   -1.4973    
  13  Prefactor     .10000E-03    7.4030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    21.350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    20.097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.9458        .11352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.8988        11.757        .16534E-03   -1.5222    
  18  norm          .10000E-03    3.5631        .15494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.0252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.5587        .10214E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.6816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    10.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     17.255        5.5551        .96420E-04   -1.4877    
  24  norm          .10000E-03    16.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          10.591        3.3276        .82974E-04   -1.5057    
  26  norm          .10012E-03    41.136        .38685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    23.130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.1563        .19515        .23536E-03   -.87965    
  29  Prefactor     .87622        .20552        .29014E-03   -.96977    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.05655e-09
Minuit parameter uncertainties:
  1  4.65202
  2  29.5119
  3  0.000101298
  4  6.76195
  5  2.99442
  6  6.70666e-05
  7  24.712
  8  0.000104333
  9  14.6988
  10  4.87707
  11  40.3337
  12  8.87215
  13  1.74906e-05
  14  4.21565e-06
  15  4.82861e-05
  16  8.92759e-07
  17  11.7615
  18  3.25044e-07
  19  2.88178e-05
  20  6.73096e-07
  21  5.59231e-05
  22  6.05681e-05
  23  5.55523
  24  6.64824e-05
  25  3.3277
  26  0.00440287
  27  0.00010339
  28  0.195273
  29  0.205699
Done.

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

Extracting fit parameters...

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  1.000e-04  8.928e-07  1.000e-04  1.000e+04 ( 1.000e-12)
289        Index:  2.415e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
290        Scale:  7.126e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
565    Prefactor:  8.762e-01  2.057e-01  0.000e+00  1.000e+01 ( 1.000e+00)
566        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
567        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
564   Normalization:  1.156e+00  1.953e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 207.715 30.559
Photon Flux Upper Limit: 5.64e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/8779/likelihoodResults_536630401_536889601_4FGL_J1350.8+3033_daily_bin1147.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): 102
logL (Free Index) = 7070.05266033
delta logL = -0.00244450268201

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7070.0502159
delta logL = -7.7245204011e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4087       1.0000          .0000       10.000    
     3 'Normalizat'    1.1563       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87624       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5680E+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=   7070.050     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      244 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10027E-03    59.962        .11374E-02** at limit **
   2  Index         2.3761        8.6150        .50000        .21725E-04
   3  Normalizat    1.1563        .23296E-01    .23536E-03   -.43279E-04
   4  Prefactor     .87622        .25483E-01    .29014E-03   -.19082E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100265
  Index      = 2.37615
  Normalizat = 1.15628
  Prefactor  = 0.87622
 **********
 **   18 **HESSE 
 **********

 FCN=   7070.050     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10027E-03    228.74        .22747E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3761        7.4175        .50000       -.55245    
   3  Normalizat    1.1563        .52342E-01    .94146E-05   -.87965    
   4  Prefactor     .87622        .57239E-01    .11606E-04   -.96977    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.28038e-08
Minuit parameter uncertainties:
  1  0.0156386
  2  771.235
  3  0.0523439
  4  0.0572428
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/8779': 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): 102
logL (Free Index) = 7070.05021566
delta logL = 1.68167389347e-07

Extracting fit parameters...

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  1.003e-04  1.564e-02  1.000e-04  1.000e+04 ( 1.000e-12)
289        Index:  2.376e+00  7.712e+02  0.000e+00  1.000e+01 (-1.000e+00)
290        Scale:  7.126e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
565    Prefactor:  8.762e-01  5.724e-02  0.000e+00  1.000e+01 ( 1.000e+00)
566        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
567        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
564   Normalization:  1.156e+00  5.234e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 207.715 30.559

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/8779/cmap_HighResolution_536630401_536889601_4FGL_J1350.8+3033_daily_bin1147.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.36e-03', job_status='DONE', photon_flux_upper_limit='5.64e-08', time_completed='2021-09-08 15:16:29.710106', job_id='8779', GAL2='0.88', fit_tolerance='1e-08', EG2='1.16', EG='1.16', time_epoch_completed='1631139389.71', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='1.68e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='1147' AND source_name='4FGL J1350.8+3033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:16:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 8779: <4FGL_J1350.8+3033_daily_bin1147> in cluster <slac> Done

Job <4FGL_J1350.8+3033_daily_bin1147> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 15:00:33 2021
Job was executed on host(s) <bullet0251>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 15:01:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 15:01:37 2021
Terminated at Wed Sep  8 15:16:30 2021
Results reported at Wed Sep  8 15:16:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1350.8+3033_daily_bin1147 207.715 30.5588 536630401 536889601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1350.8+3033 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   869.47 sec.
    Max Memory :                                 1097 MB
    Average Memory :                             329.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   893 sec.
    Turnaround time :                            957 sec.

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

