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


Performing analysis on: 4FGL_J1350.8+3033_daily_bin1030
RA = 207.715, Dec = 30.5588
tmin = 506304001, tmax = 506563201
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='8602', job_status='RUN', time_executed='2021-09-08 15:02:43.902536', time_epoch_executed='1631138563.9' WHERE source_name='4FGL J1350.8+3033' and cadence='daily' and bin_id='1030'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/8602

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/8602/ft1_4FGL_J1350.8+3033_daily_bin1030.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/8602/ft2_4FGL_J1350.8+3033_daily_bin1030.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/8602/ft1_4FGL_J1350.8+3033_daily_bin1030.fits outfile=/scratch/kocevski/8602/ft1_filteredMKT_4FGL_J1350.8+3033_daily_bin1030.fits ra=207.715 dec=30.5588 rad=12.0 tmin=506304001.0 tmax=506563201.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.51
user 3.29
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/8602/ft1_filtered_4FGL_J1350.8+3033_daily_bin1030.fits" evtable="EVENTS" scfile=/scratch/kocevski/8602/ft2_4FGL_J1350.8+3033_daily_bin1030.fits sctable="SC_DATA" outfile=/scratch/kocevski/8602/ltcube_506304001_506563201_4FGL_J1350.8+3033_daily_bin1030.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/8602/ft2_4FGL_J1350.8+3033_daily_bin1030.fits
.....................!
real 17.22
user 16.75
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/8602/ft1_filtered_4FGL_J1350.8+3033_daily_bin1030.fits evtable="EVENTS" scfile=/scratch/kocevski/8602/ft2_4FGL_J1350.8+3033_daily_bin1030.fits sctable="SC_DATA" expcube=/scratch/kocevski/8602/ltcube_506304001_506563201_4FGL_J1350.8+3033_daily_bin1030.fits outfile=/scratch/kocevski/8602/expmap_506304001_506563201_4FGL_J1350.8+3033_daily_bin1030.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/8602/ltcube_506304001_506563201_4FGL_J1350.8+3033_daily_bin1030.fits
.....................!
real 193.50
user 188.46
sys 4.02

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/8602/ft1_filtered_4FGL_J1350.8+3033_daily_bin1030.fits scfile=/scratch/kocevski/8602/ft2_4FGL_J1350.8+3033_daily_bin1030.fits outfile=/scratch/kocevski/8602/cmap_506304001_506563201_4FGL_J1350.8+3033_daily_bin1030.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/8602/ft1_filtered_4FGL_J1350.8+3033_daily_bin1030.fits scfile=/scratch/kocevski/8602/ft2_4FGL_J1350.8+3033_daily_bin1030.fits outfile=/scratch/kocevski/8602/cmap_HighResolution_506304001_506563201_4FGL_J1350.8+3033_daily_bin1030.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.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/8602/ft1_filtered_4FGL_J1350.8+3033_daily_bin1030.fits', '/scratch/kocevski/8602/ft2_4FGL_J1350.8+3033_daily_bin1030.fits', expMap='/scratch/kocevski/8602/expmap_506304001_506563201_4FGL_J1350.8+3033_daily_bin1030.fits', expCube='/scratch/kocevski/8602/ltcube_506304001_506563201_4FGL_J1350.8+3033_daily_bin1030.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/8602/Model_4FGL_J1350.8+3033_daily_bin1030.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/8602/ft1_filtered_4FGL_J1350.8+3033_daily_bin1030.fits
Spacecraft file(s): /scratch/kocevski/8602/ft2_4FGL_J1350.8+3033_daily_bin1030.fits
Exposure map: /scratch/kocevski/8602/expmap_506304001_506563201_4FGL_J1350.8+3033_daily_bin1030.fits
Exposure cube: /scratch/kocevski/8602/ltcube_506304001_506563201_4FGL_J1350.8+3033_daily_bin1030.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/8602/Model_4FGL_J1350.8+3033_daily_bin1030.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) = 4952.02661318

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1895       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .65338       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    7.0716       1.0000         .10000E-03   10000.    
    11 'Prefactor '    29.191       1.0000         .10000E-03   10000.    
    12 'norm      '    4.1792       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.6776       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.2151       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .14639       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    1.5167       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .32805       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    5.6059       1.0000         .10000E-03   10000.    
    26 'norm      '    .10112E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    15.988       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.4594       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .34089       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=   4951.935     FROM MIGRAD    STATUS=CONVERGED    752 CALLS     3739 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1905        2.9284       -.16067E-08   -.14300E-04
   2  Prefactor     .10000E-03    5.5729        .87309E-07** at limit **
   3  Prefactor     .10000E-03    6.0976        .22404E-06** at limit **
   4  norm          .10000E-03    1.7782       -.32786E-08** at limit **
   5  norm          .10000E-03    .82990       -.14428E-07** at limit **
   6  norm          .10000E-03    1.2728       -.68326E-11** at limit **
   7  norm          .10000E-03    41.991       -.12462E-06** at limit **
   8  Prefactor     .64923        2.4471        .91226E-06    .17222E-03
   9  Prefactor     .10000E-03    8.7871        .14376E-06** at limit **
  10  norm          7.0725        6.9855       -.62054E-07    .57624E-04
  11  Prefactor     29.228        40.534       -.35897E-05   -.11871E-04
  12  norm          4.1832        8.6077        .19428E-05    .93597E-04
  13  Prefactor     .10000E-03    6.6130       -.34579E-06** at limit **
  14  Prefactor     2.6712        23.041        .49878E-06    .22153E-05
  15  Prefactor     .10000E-03    16.715       -.10616E-06** at limit **
  16  Prefactor     4.2177        3.5846        .38454E-07   -.72733E-05
  17  Prefactor     .25038        7.0263       -.95825E-06    .21757E-03
  18  norm          .10000E-03    8.9797       -.29693E-06** at limit **
  19  Prefactor     .10000E-03    5.7713       -.39309E-06** at limit **
  20  norm          1.5155        2.3381        .19732E-07   -.47979E-04
  21  Prefactor     .10000E-03    8.1596        .28982E-06** at limit **
  22  Prefactor     .56609        11.310        .12418E-05   -.16752E-03
  23  Prefactor     .10000E-03    1.8214        .12762E-08** at limit **
  24  norm          .10000E-03    6.1008        .22292E-06** at limit **
  25  norm          5.6065        2.5420       -.44167E-08    .31511E-05
  26  norm          .10000E-03    13.611        .73599E-07** at limit **
  27  Prefactor     16.001        34.740       -.14920E-05    .37880E-07
  28  Normalizat    1.4590        .18616       -.70353E-06   -.33733E-04
  29  Prefactor     .34093        .19448        .11346E-05    .15197E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.19048
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.649232
  Prefactor  = 0.0001
  norm       = 7.07246
  Prefactor  = 29.2279
  norm       = 4.18316
  Prefactor  = 0.0001
  Prefactor  = 2.67125
  Prefactor  = 0.0001
  Prefactor  = 4.21774
  Prefactor  = 0.250376
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.51545
  Prefactor  = 0.0001
  Prefactor  = 0.566086
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 5.6065
  norm       = 0.0001
  Prefactor  = 16.0013
  Normalizat = 1.45897
  Prefactor  = 0.340926
 **********
 **   18 **HESSE 
 **********

 FCN=   4951.935     FROM HESSE     STATUS=OK           555 CALLS     4294 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1905        2.9255        .11247E-03   -1.5351    
   2  Prefactor     .10000E-03    5.5753        .16224E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.1015        .16969E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.7850        .91613E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .83389        .62585E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.2731        .77530E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    43.213        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .64923        2.4389        .19899E-03   -1.5547    
   9  Prefactor     .10000E-03    8.8386        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.0725        6.9585        .75426E-03   -1.5176    
  11  Prefactor     29.228        40.598        .74154E-04   -1.4626    
  12  norm          4.1832        8.6418        .98572E-03   -1.5299    
  13  Prefactor     .10000E-03    6.6286        .17669E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.6712        23.096        .24903E-03   -1.5381    
  15  Prefactor     .10000E-03    16.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.2177        3.5856        .11780E-03   -1.5297    
  17  Prefactor     .25038        88.883        .34149E-02   -1.5608    
  18  norm          .10000E-03    9.0132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.7739        .16508E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          1.5155        2.3049        .12944E-03   -1.5462    
  21  Prefactor     .10000E-03    8.1786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .56609        71.490        .42807E-02   -1.5557    
  23  Prefactor     .10000E-03    1.8443        .92682E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    6.1042        .16970E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          5.6065        2.5415        .73248E-04   -1.5234    
  26  norm          .10000E-03    13.863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     16.001        34.696        .10017E-03   -1.4908    
  28  Normalizat    1.4590        .19546        .17810E-03   -.78938    
  29  Prefactor     .34093        .20271        .37226E-03   -1.1994    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59248e-09
Minuit parameter uncertainties:
  1  2.92568
  2  1.18201e-06
  3  1.22814e-06
  4  9.24244e-07
  5  5.00209e-07
  6  3.59183e-07
  7  2.88181e-05
  8  2.4393
  9  6.32272e-06
  10  6.95932
  11  40.6367
  12  8.64435
  13  7.94547e-07
  14  15.7171
  15  1.86861e-06
  16  3.58579
  17  9.44713
  18  2.73263e-06
  19  1.24027e-07
  20  2.30502
  21  1.41305e-05
  22  12.7376
  23  5.3517e-07
  24  4.77438e-06
  25  2.54157
  26  1.2484e-05
  27  34.7398
  28  0.195563
  29  0.203134
Done.

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

Extracting fit parameters...

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  4.218e+00  3.586e+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

GAL_V02
   Spectrum: PowerLaw
565    Prefactor:  3.409e-01  2.031e-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.459e+00  1.956e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.98
Ra Dec: 207.715 30.559
Photon Index (Fixed Index): 2.42 +/- 0.00
Photon Flux (Fixed Index): 3.42e-08 +/- 2.91e-08
Energy Flux (Fixed Index): 1.10e-05 +/- 9.35e-06

TS (Fixed Index): 2.98
Ra Dec: 207.715 30.559
Photon Flux Upper Limit: 1.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.03e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/8602/likelihoodResults_506304001_506563201_4FGL_J1350.8+3033_daily_bin1030.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) = 4951.81557072
delta logL = 0.119422094818

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4951.80987524
delta logL = 0.125117576605

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7571       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0649       1.0000          .0000       10.000    
     3 'Normalizat'    1.4715       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .33149       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=   4951.810     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      263 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7569        4.1908        .13063E-03    .21626E-02
   2  Index         2.0646        .65871        .94708E-02    .30600E-03
   3  Normalizat    1.4715        .18816        .17747E-03   -.16049E-03
   4  Prefactor     .33146        .20051        .37721E-03   -.65281E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.75685
  Index      = 2.06465
  Normalizat = 1.47155
  Prefactor  = 0.331462
 **********
 **   18 **HESSE 
 **********

 FCN=   4951.810     FROM HESSE     STATUS=OK            23 CALLS      286 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7569        4.1911        .26125E-04   -1.5272    
   2  Index         2.0646        .65866        .37883E-03   -.62743    
   3  Normalizat    1.4715        .18816        .35493E-04   -.78581    
   4  Prefactor     .33146        .20050        .15088E-04   -1.2046    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.44473e-09
Minuit parameter uncertainties:
  1  4.19138
  2  0.661605
  3  0.188246
  4  0.200924
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/8602': 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) = 4951.80987514
delta logL = 0.125117673247

Extracting fit parameters...

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  4.757e+00  4.191e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        Index:  2.065e+00  6.616e-01  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:  3.315e-01  2.009e-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.472e+00  1.882e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.23
Ra Dec: 207.715 30.559
Photon Index (Free Index): 2.06 +/- 0.66
Photon Flux (Free Index): 2.58e-08 +/- 2.89e-08
Energy Flux (Free Index): 1.53e-05 +/- 1.82e-05

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/8602/cmap_HighResolution_506304001_506563201_4FGL_J1350.8+3033_daily_bin1030.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.03e-03', comment='SUCCESS', photon_flux='3.42e-08', energy_flux2='1.53e-05', photon_flux_error='2.91e-08', dlogl='1.25e-01', energy_flux='1.10e-05', photon_flux2='2.58e-08', job_status='DONE', time_completed='2021-09-08 15:15:52.707612', photon_index_error2='0.66', photon_index2='2.06', ts='2.98', fit_tolerance='1e-08', GAL='0.34', photon_index_error='0.00', photon_flux_upper_limit='1.04e-07', energy_flux_error2='1.82e-05', EG='1.46', time_epoch_completed='1631139352.71', return_code='0', job_id='8602', GAL2='0.33', EG2='1.47', return_code2='0', energy_flux_error='9.35e-06', photon_flux_error2='2.89e-08', ts2='3.23', photon_index='2.42' WHERE bin_id='1030' AND source_name='4FGL J1350.8+3033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:15:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 8602: <4FGL_J1350.8+3033_daily_bin1030> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1350.8+3033_daily_bin1030 207.715 30.5588 506304001 506563201 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 :                                   728.56 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   907 sec.
    Turnaround time :                            933 sec.

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

