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


Performing analysis on: 4FGL_J1350.8+3033_daily_bin1109
RA = 207.715, Dec = 30.5588
tmin = 526780801, tmax = 527040001
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='8722', job_status='RUN', time_executed='2021-09-08 15:04:11.793743', time_epoch_executed='1631138651.79' WHERE source_name='4FGL J1350.8+3033' and cadence='daily' and bin_id='1109'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/8722

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/8722/ft1_4FGL_J1350.8+3033_daily_bin1109.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/8722/ft2_4FGL_J1350.8+3033_daily_bin1109.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/8722/ft1_4FGL_J1350.8+3033_daily_bin1109.fits outfile=/scratch/kocevski/8722/ft1_filteredMKT_4FGL_J1350.8+3033_daily_bin1109.fits ra=207.715 dec=30.5588 rad=12.0 tmin=526780801.0 tmax=527040001.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 4.42
user 4.14
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/8722/ft2_4FGL_J1350.8+3033_daily_bin1109.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/8722/ft1_filteredMKT_4FGL_J1350.8+3033_daily_bin1109.fits evtable="EVENTS" outfile="/scratch/kocevski/8722/ft1_filtered_4FGL_J1350.8+3033_daily_bin1109.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/8722/ft1_filtered_4FGL_J1350.8+3033_daily_bin1109.fits" evtable="EVENTS" scfile=/scratch/kocevski/8722/ft2_4FGL_J1350.8+3033_daily_bin1109.fits sctable="SC_DATA" outfile=/scratch/kocevski/8722/ltcube_526780801_527040001_4FGL_J1350.8+3033_daily_bin1109.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/8722/ft2_4FGL_J1350.8+3033_daily_bin1109.fits
.....................!
real 17.15
user 16.71
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/8722/ft1_filtered_4FGL_J1350.8+3033_daily_bin1109.fits evtable="EVENTS" scfile=/scratch/kocevski/8722/ft2_4FGL_J1350.8+3033_daily_bin1109.fits sctable="SC_DATA" expcube=/scratch/kocevski/8722/ltcube_526780801_527040001_4FGL_J1350.8+3033_daily_bin1109.fits outfile=/scratch/kocevski/8722/expmap_526780801_527040001_4FGL_J1350.8+3033_daily_bin1109.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/8722/ltcube_526780801_527040001_4FGL_J1350.8+3033_daily_bin1109.fits
.....................!
real 192.97
user 187.16
sys 5.05

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/8722/ft1_filtered_4FGL_J1350.8+3033_daily_bin1109.fits scfile=/scratch/kocevski/8722/ft2_4FGL_J1350.8+3033_daily_bin1109.fits outfile=/scratch/kocevski/8722/cmap_526780801_527040001_4FGL_J1350.8+3033_daily_bin1109.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/8722/ft1_filtered_4FGL_J1350.8+3033_daily_bin1109.fits scfile=/scratch/kocevski/8722/ft2_4FGL_J1350.8+3033_daily_bin1109.fits outfile=/scratch/kocevski/8722/cmap_HighResolution_526780801_527040001_4FGL_J1350.8+3033_daily_bin1109.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.57
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .17906E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    15.151       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.1016       1.0000         .10000E-03   10000.    
    10 'norm      '    15.191       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.9297       1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.620       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .52344E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10347E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    29.159       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.5433       1.0000         .10000E-03   10000.    
    24 'norm      '    .14606E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    2.7653       1.0000         .10000E-03   10000.    
    26 'norm      '    19.026       1.0000         .10000E-03   10000.    
    27 'Prefactor '    7.2184       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1697       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .86477       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=   4984.742     FROM MIGRAD    STATUS=CONVERGED    116 CALLS     3164 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.6268        .34861E-06** at limit **
   2  Prefactor     .10000E-03    16.344       -.10569E-05** at limit **
   3  Prefactor     .10013E-03    6.0885        .97477E-06** at limit **
   4  norm          .10000E-03    2.4777        .40472E-06** at limit **
   5  norm          .10000E-03    3.2523        .18015E-07** at limit **
   6  norm          .10000E-03    3.9073       -.11977E-06** at limit **
   7  norm          15.146        1.1466       -.40715E-06   -.60533E-03
   8  Prefactor     .10000E-03    1.3802       -.76279E-07** at limit **
   9  Prefactor     4.1025        1.0312        .41050E-06    .33043E-04
  10  norm          15.190        7.7345       -.87176E-05   -.49599E-02
  11  Prefactor     .10006E-03    32.953        .61172E-05** at limit **
  12  norm          .10000E-03    2.7336        .18533E-06** at limit **
  13  Prefactor     6.9306        1.0075        .60568E-07    .13119E-04
  14  Prefactor     16.621        1.0049       -.75223E-07   -.42264E-05
  15  Prefactor     .11252E-03    148.24       -.27059E-04** at limit **
  16  Prefactor     .10000E-03    1.5387       -.23016E-06** at limit **
  17  Prefactor     .12810E-03    58.646        .29203E-05** at limit **
  18  norm          .10028E-03    13.400        .81355E-05** at limit **
  19  Prefactor     .10011E-03    25.900        .28806E-05** at limit **
  20  norm          .10000E-03    1.5242       -.31708E-06** at limit **
  21  Prefactor     29.168        1.4730       -.27701E-06    .11686E-02
  22  Prefactor     .10002E-03    28.301       -.11680E-04** at limit **
  23  Prefactor     2.5439        4.0099        .10679E-05    .12518E-03
  24  norm          .10009E-03    32.791        .57935E-05** at limit **
  25  norm          2.7653        2.1614       -.83338E-07    .35842E-04
  26  norm          19.027        1.1202        .31151E-06   -.45818E-04
  27  Prefactor     7.2493        5.7089        .49774E-05   -.26021E-02
  28  Normalizat    1.1696        .22760        .35195E-05    .35438E-05
  29  Prefactor     .86480        .24383       -.42768E-06    .13701E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100134
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 15.146
  Prefactor  = 0.0001
  Prefactor  = 4.10254
  norm       = 15.1902
  Prefactor  = 0.000100062
  norm       = 0.0001
  Prefactor  = 6.93065
  Prefactor  = 16.621
  Prefactor  = 0.000112518
  Prefactor  = 0.0001
  Prefactor  = 0.000128098
  norm       = 0.000100278
  Prefactor  = 0.000100112
  norm       = 0.0001
  Prefactor  = 29.168
  Prefactor  = 0.000100016
  Prefactor  = 2.54391
  norm       = 0.000100091
  norm       = 2.76526
  norm       = 19.0274
  Prefactor  = 7.24927
  Normalizat = 1.16962
  Prefactor  = 0.864799
 **********
 **   18 **HESSE 
 **********

 FCN=   4984.742     FROM HESSE     STATUS=OK           615 CALLS     3779 TOTAL
                     EDM=   .40E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.6154        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    16.303        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10013E-03    15.704        .10163       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.4591        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.1605        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.8752        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          15.146        25.610        .25725E-02   -1.4929    
   8  Prefactor     .10000E-03    1.3763        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.1025        12.548        .49764E-02   -1.5303    
  10  norm          15.190        8.1674        .25691E-02   -1.4928    
  11  Prefactor     .10006E-03    71.196        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.7289        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.9306        16.142        .38101E-02   -1.5181    
  14  Prefactor     16.621        15.917        .24560E-02   -1.4892    
  15  Prefactor     .11252E-03    222.06        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.5312        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .12810E-03    13.968        .95693E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10028E-03    32.025        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10011E-03    29.493        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.5209        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     29.168        20.813        .18549E-02   -1.4627    
  22  Prefactor     .10002E-03    36.534        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.5439        4.0428        .64016E-02   -1.5389    
  24  norm          .10009E-03    68.395        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.7653        2.1542        .61189E-02   -1.5375    
  26  norm          19.027        13.172        .22955E-02   -1.4835    
  27  Prefactor     7.2493        110.25        .37324E-02   -1.5169    
  28  Normalizat    1.1696        .19626        .51494E-01   -.87547    
  29  Prefactor     .86480        .20583        .44554E-01   -.97382    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.02021e-07
Minuit parameter uncertainties:
  1  5.24573e-06
  2  0.000115448
  3  0.00290262
  4  3.16783e-06
  5  7.75736e-07
  6  8.8539e-06
  7  25.6282
  8  3.92413e-06
  9  12.5555
  10  8.16795
  11  0.00420019
  12  8.82393e-06
  13  16.1525
  14  15.9206
  15  0.105839
  16  1.45927e-06
  17  0.0396311
  18  0.00596598
  19  0.0036307
  20  2.83931e-06
  21  20.818
  22  0.00152597
  23  4.04323
  24  0.00498743
  25  2.15425
  26  13.1735
  27  56.6656
  28  0.196388
  29  0.206019
Done.

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

Extracting fit parameters...

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  1.000e-04  1.459e-06  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.648e-01  2.060e-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.170e+00  1.964e-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: 6.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/8722/likelihoodResults_526780801_527040001_4FGL_J1350.8+3033_daily_bin1109.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) = 4984.74533594
delta logL = -0.00303907609486

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4984.74229689
delta logL = -3.20060280501e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4148       1.0000          .0000       10.000    
     3 'Normalizat'    1.1696       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86482       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=   4984.742     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      237 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    218.90        .85299E-03** at limit **
   2  Index         2.4076        6.0245        .50000        .19647E-05
   3  Normalizat    1.1696        .71518E-01    .22767E-03   -.54929E-06
   4  Prefactor     .86480        .76632E-01    .27799E-03    .93243E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Index      = 2.40755
  Normalizat = 1.16962
  Prefactor  = 0.864799
 **********
 **   18 **HESSE 
 **********

 FCN=   4984.742     FROM HESSE     STATUS=OK            29 CALLS      266 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.0214        .17060E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4076        6.1895        .50000       -.54508    
   3  Normalizat    1.1696        .22512        .91067E-05   -.87547    
   4  Prefactor     .86480        .24134        .11120E-04   -.97382    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.25445e-09
Minuit parameter uncertainties:
  1  0.000200099
  2  139.158
  3  0.22531
  4  0.241636
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/8722': 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) = 4984.74229686
delta logL = 2.69756128546e-09

Extracting fit parameters...

4FGL J1350.8+3033
   Spectrum: PowerLaw
288    Prefactor:  1.000e-04  2.001e-04  1.000e-04  1.000e+04 ( 1.000e-12)
289        Index:  2.408e+00  1.392e+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.648e-01  2.416e-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.170e+00  2.253e-01  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/8722/cmap_HighResolution_526780801_527040001_4FGL_J1350.8+3033_daily_bin1109.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.68e-03', job_status='DONE', photon_flux_upper_limit='6.06e-08', time_completed='2021-09-08 15:17:01.850379', job_id='8722', GAL2='0.86', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1631139421.85', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='2.70e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.42' WHERE bin_id='1109' AND source_name='4FGL J1350.8+3033' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 15:17:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 8722: <4FGL_J1350.8+3033_daily_bin1109> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1350.8+3033_daily_bin1109 207.715 30.5588 526780801 527040001 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 :                                   667.47 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   935 sec.
    Turnaround time :                            996 sec.

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

