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


Performing analysis on: 4FGL_J1350.8+3033_daily_bin1185
RA = 207.715, Dec = 30.5588
tmin = 546480001, tmax = 546739201
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='8833', job_status='RUN', time_executed='2021-09-08 15:04:51.948113', time_epoch_executed='1631138691.95' WHERE source_name='4FGL J1350.8+3033' and cadence='daily' and bin_id='1185'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/8833

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/8833/ft1_4FGL_J1350.8+3033_daily_bin1185.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/8833/ft2_4FGL_J1350.8+3033_daily_bin1185.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/8833/ft1_4FGL_J1350.8+3033_daily_bin1185.fits outfile=/scratch/kocevski/8833/ft1_filteredMKT_4FGL_J1350.8+3033_daily_bin1185.fits ra=207.715 dec=30.5588 rad=12.0 tmin=546480001.0 tmax=546739201.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.98
user 3.68
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/8833/ft2_4FGL_J1350.8+3033_daily_bin1185.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/8833/ft1_filteredMKT_4FGL_J1350.8+3033_daily_bin1185.fits evtable="EVENTS" outfile="/scratch/kocevski/8833/ft1_filtered_4FGL_J1350.8+3033_daily_bin1185.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.51
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/8833/ft1_filtered_4FGL_J1350.8+3033_daily_bin1185.fits" evtable="EVENTS" scfile=/scratch/kocevski/8833/ft2_4FGL_J1350.8+3033_daily_bin1185.fits sctable="SC_DATA" outfile=/scratch/kocevski/8833/ltcube_546480001_546739201_4FGL_J1350.8+3033_daily_bin1185.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/8833/ft2_4FGL_J1350.8+3033_daily_bin1185.fits
.....................!
real 15.22
user 14.85
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/8833/ft1_filtered_4FGL_J1350.8+3033_daily_bin1185.fits evtable="EVENTS" scfile=/scratch/kocevski/8833/ft2_4FGL_J1350.8+3033_daily_bin1185.fits sctable="SC_DATA" expcube=/scratch/kocevski/8833/ltcube_546480001_546739201_4FGL_J1350.8+3033_daily_bin1185.fits outfile=/scratch/kocevski/8833/expmap_546480001_546739201_4FGL_J1350.8+3033_daily_bin1185.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/8833/ltcube_546480001_546739201_4FGL_J1350.8+3033_daily_bin1185.fits
.....................!
real 191.62
user 186.15
sys 4.94

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/8833/ft1_filtered_4FGL_J1350.8+3033_daily_bin1185.fits scfile=/scratch/kocevski/8833/ft2_4FGL_J1350.8+3033_daily_bin1185.fits outfile=/scratch/kocevski/8833/cmap_546480001_546739201_4FGL_J1350.8+3033_daily_bin1185.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.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/8833/ft1_filtered_4FGL_J1350.8+3033_daily_bin1185.fits scfile=/scratch/kocevski/8833/ft2_4FGL_J1350.8+3033_daily_bin1185.fits outfile=/scratch/kocevski/8833/cmap_HighResolution_546480001_546739201_4FGL_J1350.8+3033_daily_bin1185.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.39
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/8833/ft1_filtered_4FGL_J1350.8+3033_daily_bin1185.fits', '/scratch/kocevski/8833/ft2_4FGL_J1350.8+3033_daily_bin1185.fits', expMap='/scratch/kocevski/8833/expmap_546480001_546739201_4FGL_J1350.8+3033_daily_bin1185.fits', expCube='/scratch/kocevski/8833/ltcube_546480001_546739201_4FGL_J1350.8+3033_daily_bin1185.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/8833/Model_4FGL_J1350.8+3033_daily_bin1185.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/8833/ft1_filtered_4FGL_J1350.8+3033_daily_bin1185.fits
Spacecraft file(s): /scratch/kocevski/8833/ft2_4FGL_J1350.8+3033_daily_bin1185.fits
Exposure map: /scratch/kocevski/8833/expmap_546480001_546739201_4FGL_J1350.8+3033_daily_bin1185.fits
Exposure cube: /scratch/kocevski/8833/ltcube_546480001_546739201_4FGL_J1350.8+3033_daily_bin1185.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/8833/Model_4FGL_J1350.8+3033_daily_bin1185.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 81.1612530388

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 80.4757484636

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .39592E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.9806       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.9059       1.0000         .10000E-03   10000.    
     4 'norm      '    .16913       1.0000         .10000E-03   10000.    
     5 'norm      '    .14522       1.0000         .10000E-03   10000.    
     6 'norm      '    .26266E-01   1.0000         .10000E-03   10000.    
     7 'norm      '    .18421       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .16040E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .86309E-01   1.0000         .10000E-03   10000.    
    10 'norm      '    .38342E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.7532       1.0000         .10000E-03   10000.    
    12 'norm      '    .10662E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .16036E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.7331       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.3556       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .41544E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .16410E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    4.1182       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.0336       1.0000         .10000E-03   10000.    
    20 'norm      '    4.0953       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.9926       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.9654       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.8644       1.0000         .10000E-03   10000.    
    24 'norm      '    3.4655       1.0000         .10000E-03   10000.    
    25 'norm      '    .75574E-01   1.0000         .10000E-03   10000.    
    26 'norm      '    4.7089       1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.5524       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1119       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .36108E-05   1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   80.46649     FROM MIGRAD    STATUS=CONVERGED    181 CALLS      478 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    68.083        .27981E-06** at limit **
   2  Prefactor     .12298E-03    463.13        .62025E-05** at limit **
   3  Prefactor     .84264E-01    8247.6        .21687E-04   -.15824E-02
   4  norm          .12221E-03    323.04       -.33140E-05** at limit **
   5  norm          .10000E-03    66.033        .12270E-06** at limit **
   6  norm          .10000E-03    101.60        .26983E-06** at limit **
   7  norm          .10000E-03    84.529        .90986E-07** at limit **
   8  Prefactor     .10001E-03    163.54        .74705E-06** at limit **
   9  Prefactor     .15482E-03    237.74        .44220E-06** at limit **
  10  norm          .10000E-03    17.586        .11663E-06** at limit **
  11  Prefactor     3.5140        874.27        .82045E-05    .49842E-02
  12  norm          .10000E-03    27.034       -.12826E-06** at limit **
  13  Prefactor     .10108E-03    229.34       -.73483E-05** at limit **
  14  Prefactor     .11061E-03    355.80        .11960E-04** at limit **
  15  Prefactor     8.3556        1.0018         .0000         .0000    
  16  Prefactor     .12779E-03    338.43        .12324E-04** at limit **
  17  Prefactor     .10000E-03    46.614       -.11284E-06** at limit **
  18  norm          4.1182        1.0076         .0000         .0000    
  19  Prefactor     1.0336        1.2636         .0000         .0000    
  20  norm          4.0953        1.0076         .0000         .0000    
  21  Prefactor     4.9926        1.0051         .0000         .0000    
  22  Prefactor     1.9654        1.0367         .0000         .0000    
  23  Prefactor     1.8644        1.0414         .0000         .0000    
  24  norm          3.4655        1.0108         .0000         .0000    
  25  norm          .10000E-03    65.121       -.30477E-06** at limit **
  26  norm          4.7089        1.0057         .0000         .0000    
  27  Prefactor     5.5524        1.0041         .0000         .0000    
  28  Normalizat    1.1138        .49448       -.33638E-05   -.21575E-04
  29  Prefactor     .56065E-10    .91062       -.29194E-04** at limit **
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000122985
  Prefactor  = 0.084264
  norm       = 0.000122214
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100013
  Prefactor  = 0.000154822
  norm       = 0.0001
  Prefactor  = 3.51397
  norm       = 0.0001
  Prefactor  = 0.000101082
  Prefactor  = 0.000110613
  Prefactor  = 8.35559
  Prefactor  = 0.000127791
  Prefactor  = 0.0001
  norm       = 4.11821
  Prefactor  = 1.03359
  norm       = 4.09532
  Prefactor  = 4.99259
  Prefactor  = 1.96541
  Prefactor  = 1.8644
  norm       = 3.46549
  norm       = 0.0001
  norm       = 4.70885
  Prefactor  = 5.55242
  Normalizat = 1.11377
  Prefactor  = 5.60652e-11
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   80.46649     FROM HESSE     STATUS=FAILED        67 CALLS      545 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    68.088        .97536E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .12298E-03    472.23        .73627E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .84264E-01    8357.0        .75297E-02   -1.5766    
   4  norm          .12221E-03    560.63        .98358E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    66.050        .97247E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    101.61        .91536E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    84.458        .99054E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    163.56        .91030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .15482E-03    497.12        .94458E-02   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    17.566        .10641E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.5140        9764.6        .41863E-02   -1.5333    
  12  norm          .10000E-03    27.008        .10360E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10108E-03    229.49        .10209E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .11061E-03    357.68        .61575E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     502.52        494.13         .0000       -1.5130    
  16  Prefactor     .12779E-03    .28212        .12324E-04   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    .26006       -.11284E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.1182        1.0076         .0000       -1.5302    
  19  Prefactor     1.0336        1.2636         .0000       -1.5505    
  20  norm          4.0953        1.0076         .0000       -1.5303    
  21  Prefactor     4.9926        1.0051         .0000       -1.5261    
  22  Prefactor     1.9654        1.0367         .0000       -1.5428    
  23  Prefactor     1.8644        1.0414         .0000       -1.5435    
  24  norm          3.4655        1.0108         .0000       -1.5336    
  25  norm          .10000E-03    .22062       -.30477E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          4.7089        1.0057         .0000       -1.5274    
  27  Prefactor     5.5524        1.0041         .0000       -1.5237    
  28  Normalizat    1.1138        1.1481       -.33638E-05   -.89311    
  29  Prefactor     .56065E-10    .25623       -.29194E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.85997e-10
Minuit parameter uncertainties:
  1  1.53261e-05
  2  0.210042
  3  55.5529
  4  0.225335
  5  1.83676e-05
  6  6.25167e-05
  7  6.03557e-06
  8  0.00292979
  9  0.332969
  10  7.98446e-06
  11  514.158
  12  1.08301e-05
  13  0.0316304
  14  0.123971
  15  1.0018
  16  0.00560017
  17  9.23574e-07
  18  1.00757
  19  1.26363
  20  1.00765
  21  1.0051
  22  1.0367
  23  1.04144
  24  1.01081
  25  1.91974e-06
  26  1.00575
  27  1.00411
  28  1.17553
  29  7.61311e-06
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 80.466492905

Extracting fit parameters...

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  1.278e-04  5.600e-03  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:  5.607e-11  7.613e-06  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.114e+00  1.176e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 207.715 30.559
Photon Flux Upper Limit: 1.70e-05 ph cm-2 s-1
Energy Flux Upper Limit: 1.31e+00 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/8833/likelihoodResults_546480001_546739201_4FGL_J1350.8+3033_daily_bin1185.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) = 80.466506527
delta logL = -1.36219916698e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 80.4664932084
delta logL = -3.03354397602e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16446E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.2462       1.0000          .0000       10.000    
     3 'Normalizat'    1.1138       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .16117E-09   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=   80.46649     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      276 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11428E-03    523.18        .11586E-01** at limit **
   2  Index         3.0140        6.4783        .50000        .12015E-05
   3  Normalizat    1.1138        .34977E-01    .13920E-03   -.76194E-04
   4  Prefactor     .17979E-09    .46678E-02    .50357E-02** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000114279
  Index      = 3.01401
  Normalizat = 1.11376
  Prefactor  = 1.79791e-10
 **********
 **   18 **HESSE 
 **********

 FCN=   80.46649     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      305 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11428E-03    6819.2        .12887E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.0140        5.5201        .50000       -.40846    
   3  Normalizat    1.1138        .99848E-01    .27839E-04   -.89311    
   4  Prefactor     .17979E-09    .38017E-01    .10071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.16224e-08
Minuit parameter uncertainties:
  1  0.489382
  2  3815.31
  3  0.0998651
  4  5.23214e-06
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/8833': 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) = 80.4664929876
delta logL = -8.26351822525e-08

Extracting fit parameters...

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  1.143e-04  4.894e-01  1.000e-04  1.000e+04 ( 1.000e-12)
289        Index:  3.014e+00  3.815e+03  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:  1.798e-10  5.232e-06  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.114e+00  9.987e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/8833/cmap_HighResolution_546480001_546739201_4FGL_J1350.8+3033_daily_bin1185.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.31e+00', job_status='DONE', photon_flux_upper_limit='1.70e-05', time_completed='2021-09-08 15:12:13.533058', job_id='8833', GAL2='0.00', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1631139133.53', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.00', dlogl='-8.26e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='1185' AND source_name='4FGL J1350.8+3033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:12:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 8833: <4FGL_J1350.8+3033_daily_bin1185> in cluster <slac> Done

Job <4FGL_J1350.8+3033_daily_bin1185> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 15:00:37 2021
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 15:01:45 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:45 2021
Terminated at Wed Sep  8 15:12:14 2021
Results reported at Wed Sep  8 15:12:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1350.8+3033_daily_bin1185 207.715 30.5588 546480001 546739201 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 :                                   328.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             223.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   628 sec.
    Turnaround time :                            697 sec.

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

